packrat::restore not restoring dplyr

82 views
Skip to first unread message

Jonathan

unread,
Aug 18, 2015, 7:40:21 PM8/18/15
to packrat-discuss
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

Kevin Ushey

unread,
Aug 19, 2015, 1:37:02 PM8/19/15
to Jonathan, packrat-discuss
Hi Jonathan,

I cannot reproduce this -- is it possible that there was an intermittent problem with the RStudio CRAN mirror? Or are you still seeing that dplyr is not available?

Thanks,
Kevin

--
You received this message because you are subscribed to the Google Groups "packrat-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packrat-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jonathan

unread,
Aug 19, 2015, 1:43:05 PM8/19/15
to packrat-discuss, jonn...@gmail.com
Hi Kevin,

When I open R in the terminal from the project root directory and try a packrat::restore(), I get the following error:

> packrat::restore()
Installing dplyr (0.4.1) ... Error in installPkg(pkgRecord, project, availablePkgs, repos, lib, cache) :
  Failed to install dplyr (0.4.1): sources missing at /home/jonathan/projects/test/packrat/src/dplyr/dplyr_0.4.1.tar.gz

My session info:

> sessionInfo()
R version 3.1.0 (2014-04-10)
Platform: x86_64-unknown-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=C
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.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


Reply all
Reply to author
Forward
0 new messages