Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uptz= to tzstr= to avoid partial argument match #49
Conversation
Hi Dirk,
In data.table we now run tests with R's `warnPartialMatchArgs` turned on, . This revealed this one line in nanotime since we have tests of nanotime with data.table.
```
> options(warnPartialMatchArgs=TRUE)
> nanotime("2016-09-28T15:30:00.000000070Z")
[1] "2016-09-28T15:30:00.000000070+00:00"
Warning message:
In RcppCCTZ::parseDouble(x, fmt = format, tz = tz) :
partial argument match of 'tz' to 'tzstr'
```
It came up because a user wished to turn on this option for their own code in production to be strict themselves. But then internal code of data.table was caught by it too. So now we turn it on in tests, and stopped relying on partial argument match ourselves in internal data.table code. It's a nice improvement and caught a few things. I didn't know about this option before actually.
Hope you enjoyed Toulouse.
Best, Matt
Codecov Report
@@ Coverage Diff @@
## master #49 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 1 1
Lines 93 93
=====================================
Hits 93 93
Continue to review full report at Codecov.
|
|
Saw the tweet about the NEWS item, and sorry for this -- and thanks for the PR. Will fold it in. Greetings from Toulouse airport. Saw Jens here too, we missed you once more. |
|
Thanks again. Now merged, given that I am home. |
Hi Dirk,
In data.table we now run tests with R's
warnPartialMatchArgsturned on. This revealed this one line in nanotime since we have tests of nanotime with data.table.It came up because a user wished to turn on this option for their own code in production to be strict themselves. But then internal code of data.table was caught by it too. So now we turn it on in tests, and stopped relying on partial argument match ourselves in internal data.table code. It's a nice improvement and caught a few things. I didn't know about this option before actually.
Hope you enjoyed Toulouse.
Best, Matt