Hello,
I am trying to use packrat::restore() to restore my packages in my project on another machine, but it is failing to restore dplyr 0.4.1
I dug around the source code, and I think I narrowed down the problem to dplyr not being marked as an available package. I am not sure if this is a packrat problem or a dplyr problem, but it is causing packrat::restore() to fail when it tries to install dplyr.
In
restore.R at line 116, the package name ("dplyr") is checked against the names of available packages in the CRAN repository, but for some reason, dplyr is not present.
Example:
availablePkgs <- available.packages(contrib.url("http://cran.rstudio.com"))
"dplyr" %in% rownames(availablePkgs)
# [1] FALSE
My R Session:
R version 3.1.0 (2014-04-10)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=C LC_NUMERIC=C LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8 LC_MONETARY=en_CA.UTF-8
[6] LC_MESSAGES=en_CA.UTF-8 LC_PAPER=en_CA.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] packrat_0.4.4 tools_3.1.0
Thanks,
Jonathan