Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invoke_map not working with dates #249

Closed
jeremystan opened this issue Sep 25, 2016 · 0 comments

Comments

@jeremystan
Copy link

commented Sep 25, 2016

invoke_map does not work with a list of dates:

library(purrr)
day <- as.Date("2016-09-01")
num <- 1
invoke_map(list(identity), list(num))
#> [[1]]
#> [1] 1
#> 
invoke_map(list(identity), list(day))
#> Error in do.call(.f, c(.x, list(...)), envir = .env) :
#>   second argument must be a list
> sessionInfo()
R version 3.3.1 (2016-06-21)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11.6 (El Capitan)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] purrr_0.2.2

loaded via a namespace (and not attached):
[1] lazyeval_0.2.0 magrittr_1.5   Rcpp_0.12.6

@hadley hadley added the bug label Mar 3, 2017

@hadley hadley closed this in 25f0e13 Mar 5, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.