Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@schloerke
Copy link
Contributor

For some reason on my machine, this fails to work. By switching the order, the units work as expected.

Fix for #94

as.numeric(units = "secs", Sys.time() - parsedate::parse_iso_8601("2018-04-19"))
# Error in as.numeric(units = "secs", Sys.time() - parsedate::parse_iso_8601("2018-04-19")) : 
#   supplied argument name 'units' does not match 'x'
as.numeric(Sys.time() - parsedate::parse_iso_8601("2018-04-19"), units = "secs")
# [1] 71099.63

> as.numeric(units = "secs", Sys.time() - parsedate::parse_iso_8601("2018-04-19"))
Error in as.numeric(units = "secs", Sys.time() - parsedate::parse_iso_8601("2018-04-19")) : 
  supplied argument name 'units' does not match 'x'
> as.numeric(Sys.time() - parsedate::parse_iso_8601("2018-04-19"), units = "secs")
[1] 71099.63
@gaborcsardi
Copy link
Collaborator

Thanks!

@gaborcsardi gaborcsardi merged commit 1f6c23f into r-hub:master May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants