I recently updated to R 3.1.3 and I am building a package using RStudio and packrat
. I am trying to re-build my package using RStudio's in built "Build and Reload" tool, but it won't work. I keep receiving the following error:
Updating standaRd documentation
Loading standaRd
Error in (function (dep_name, dep_ver = NA, dep_compare = NA) :
Dependency package ggplot2 not available.
Calls: suppressPackageStartupMessages ... <Anonymous> -> load_all -> load_depends -> mapply -> <Anonymous>
Execution halted
Exited with status 1.
The thing is, I have ggplot2
installed in all places including my local libraries and my packrat libraries for this project for both R 3.1.2 and R 3.1.3. I have tried loading them in to no avail.
Also, using devtools::build()
and devtools::document()
both work, so I am assuming that this is an RStudio issue?
I am using RStudio Version 0.99.235. I also cannot see any of my documentation for my package and it doesn't appear to be in my packrat library.
I have since uninstalled R 3.1.3 and reverted back to R 3.1.2 and I am still getting the same issue.
These are my dependencies:
Depends:
R (>= 3.1.2),
ggplot2 (>= 1.0.0),
grid
ggplot2
in the Imports field. I have always had the package built this way and it was only when I upgraded R that I started having the issues. I'm not sure how to build form the command line butdevtools::build()
works fine... – Shortcircuit