Closed vzemlys closed 9 years ago
I had a similar issue, when in dplyr pipe inside a function, function arguments were not respected when using data.table arguments. I did not manage (or was too busy) to write the reproducible example, so I'm just mentioning it here, it might be similar bug.
I fixed a few of these problems in the dev version. Could you try it out please?
With the dev version everything works (both issues are solved). Thanks! Posting sessionInfo just in case:
R version 3.1.1 (2014-07-10)
Platform: x86_64-apple-darwin13.1.0 (64-bit)
locale:
[1] fr_FR.UTF-8/fr_FR.UTF-8/fr_FR.UTF-8/C/fr_FR.UTF-8/C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] lazyeval_0.1.9.9001 magrittr_1.5 tidyr_0.2.0
[4] dplyr_0.3.0.9000 data.table_1.9.4
loaded via a namespace (and not attached):
[1] assertthat_0.1.0.99 chron_2.3-45 compiler_3.1.1
[4] DBI_0.3.1 parallel_3.1.1 plyr_1.8.1
[7] Rcpp_0.11.3 reshape2_1.4 stringi_0.3-1
[10] stringr_0.6.2 tools_3.1.1
Here is the following code:
The fourth line produces an error:
The fifth line does not produce the error. This behaviour appeared with data.table 1.9.4, it worked fine with version 1.9.2. This is my hypothesis though.
Here is the output of sessionInfo():