Error when using devtools::load_all(): Error in (function (dep_name, dep_ver = NA, dep_compare = NA) : Dependency package dplyr not available

472 views
Skip to first unread message

Ayala Allon

unread,
Aug 11, 2015, 9:32:06 AM8/11/15
to devtools
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("Ayala S.", "Allon", email = "ayala...@gmail.com", role = c("aut", "cre")),
    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

Ayala Allon

unread,
Aug 12, 2015, 8:19:11 AM8/12/15
to devtools
I also posted this question in stackoverflow and got an answer in one of the comments
Ayala
Reply all
Reply to author
Forward
0 new messages