Good morning from Australia,
Since our computers at work do not have internet access, I've asked our IT Manager to download all the R packages and place them in a shared network location. I've since transferred those 4GB of packages to my a local directory: E:/R-3.3.1/MyRPackages/src/contrib/______.tar.gz
I would like my packages to be installed in E:\R-3.3.1\library
I am using Windows 7 Professional, 64-bit, along with RStudio and R version 3.3.1 (2016-06-21).
I simply would like to install.packages and install a package from my local repo, including all its dependencies.
I've tried reading up on this and tried several permutations of the install.packages command, but am not having luck. For example,
install.packages("E:/R-3.3.1/MyRPackages/src/contrib/devtools_1.12.0.tar.gz",dependencies = TRUE,repos = NULL)
ERROR: dependencies 'httr', 'memoise', 'whisker', 'digest', 'rstudioapi', 'jsonlite', 'git2r', 'withr' are not available for package 'devtools' * removing 'E:/R-3.3.1/library/devtools' Warning in install.packages : running command '"E:/R-33~1.1/bin/x64/R" CMD INSTALL -l "E:\R-3.3.1\library" "E:/R-3.3.1/MyRPackages/src/contrib/devtools_1.12.0.tar.gz"' had status 1 Warning in install.packages : installation of package ‘E:/R-3.3.1/MyRPackages/src/contrib/devtools_1.12.0.tar.gz’ had non-zero exit status
install.packages("E:/R-3.3.1/MyRPackages/src/contrib/devtools_1.12.0.tar.gz",dependencies = TRUE,repos = NULL,lib="E:/R-3.3.1/library")
ERROR: dependencies 'httr', 'memoise', 'whisker', 'digest', 'rstudioapi', 'jsonlite', 'git2r', 'withr' are not available for package 'devtools' * removing 'E:/R-3.3.1/library/devtools' Warning in install.packages : running command '"E:/R-33~1.1/bin/x64/R" CMD INSTALL -l "E:\R-3.3.1\library" "E:/R-3.3.1/MyRPackages/src/contrib/devtools_1.12.0.tar.gz"' had status 1 Warning in install.packages : installation of package ‘E:/R-3.3.1/MyRPackages/src/contrib/devtools_1.12.0.tar.gz’ had non-zero exit status
install.packages("E:/R-3.3.1/MyRPackages/src/contrib/devtools_1.12.0.tar.gz",dependencies = TRUE,repos = NULL,lib="E:/R-3.3.1/library",type = "source")
ERROR: dependencies 'httr', 'memoise', 'whisker', 'digest', 'rstudioapi', 'jsonlite', 'git2r', 'withr' are not available for package 'devtools' * removing 'E:/R-3.3.1/library/devtools' Warning in install.packages : running command '"E:/R-33~1.1/bin/x64/R" CMD INSTALL -l "E:\R-3.3.1\library" "E:/R-3.3.1/MyRPackages/src/contrib/devtools_1.12.0.tar.gz"' had status 1 Warning in install.packages : installation of package ‘E:/R-3.3.1/MyRPackages/src/contrib/devtools_1.12.0.tar.gz’ had non-zero exit status