I have encountered a problem when installing R packages from github, using the install_github(...) command from the devtools package. After updating to the latest R version 3.3.1 and devtools v1.12.0, I get the following type of error (for example, for the DT package):
...
* installing *source* package 'DT' ...
** R
** inst
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called 'Rcpp'
ERROR: lazy loading failed for package 'DT'
* removing 'C:/Program Files/R/R-3.3.1/library/DT'
Fehler: Command failed (1)
I tried a number of other (also non-rstudio) github R packages, and the problem is the like, i.e. not particular to Rcpp or DT. I am using Rtools34, compatible with the R version. I have run R as administrator and on different computers (Windows XP and 10, x64). It seems clear that Depends, Imports and Suggests packages of the package to be installed from github get installed as well, but not in turn the dependencies of the latter ones. What am I missing here? Thanks very much in advance!
EDIT: This question is NOT answered by issues with the R build-in install.packages(...), which works perfectly. But rather to the devtools install_github(...) as used in point 8 of How should I deal with "package 'xxx' is not available (for R version x.y.z)" warning? (yes, I checked the other points there, too).
EDIT: Closed - indeed, it was a bug in devtools, absolutely not related to install.packages; solved in the latest github version. I would recommend the superusers to read the content before marking posts as duplicated, please.