Hey,
I am developing a package using devtools. I wanted to check my package on a different computer than the one the package was developed on to see if it works. I installed the latest R and Rstudio version, and I also installed the packages listed in the Getting Started section in Hadley Wickham's book on R packages (install.packages(c("devtools", "roxygen2", "testthat", "knitr"))
Then I ran devtools::has_dev() and I got TRUE as expected.
However when I did devtoold::load_all() I get the following error:
Error in (function (dep_name, dep_ver = NA, dep_compare = NA) :
Dependency package dplyr not available.
This is how my DESCRIPTION file looks like:
Package: prepdat
Title:xxx
Version: 0.0.0.9000
Authors@R: c(
person("Roy", "Luria", role = "aut"),
person("Jim", "Grange", role = "ctb"),
person("Nachshon", "Meiran", role = "ccp"))
Description: xxxx
Depends: R (>= 3.0.3),
Imports: dplyr (>= 0.4.2),
reshape2 (>= 1.4.1)
License: GPL-3
LazyData: true
Suggests: knitr,
testthat
And this is how the NAMESPACE looks like:
importFrom(dplyr,"%>%")
importFrom(psych,"harmonic.mean")
Does anyone knows how can I solve this error? I want to zip my package and send it to a colleague so he can go over it using devtools::load_all().
Any help will be greatly appreciated.
Best
Ayala