Error installing: "there is no package called 'scales'
Opened this issue · 7 comments
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called 'scales'
ERROR: lazy loading failed for package 'topHRU'
- removing 'C:/Program Files/R/userLIB/topHRU'
- restoring previous 'C:/Program Files/R/userLIB/topHRU'
Just tried to install topHRU on of our model servers using R version 3.2.3. Find below the installation history (error message at the end) ...
install.packages("devtools")
Installing package into ‘C:/Users/mstrauch/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
also installing the dependencies ‘memoise’, ‘whisker’, ‘rstudioapi’, ‘git2r’, ‘withr’
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/memoise_1.0.0.zip'
Content type 'application/zip' length 23315 bytes (22 KB)
downloaded 22 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/whisker_0.3-2.zip'
Content type 'application/zip' length 64656 bytes (63 KB)
downloaded 63 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/rstudioapi_0.6.zip'
Content type 'application/zip' length 50811 bytes (49 KB)
downloaded 49 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/git2r_0.18.0.zip'
Content type 'application/zip' length 2984396 bytes (2.8 MB)
downloaded 2.8 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/withr_1.0.2.zip'
Content type 'application/zip' length 42278 bytes (41 KB)
downloaded 41 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/devtools_1.12.0.zip'
Content type 'application/zip' length 432899 bytes (422 KB)
downloaded 422 KB
package ‘memoise’ successfully unpacked and MD5 sums checked
package ‘whisker’ successfully unpacked and MD5 sums checked
package ‘rstudioapi’ successfully unpacked and MD5 sums checked
package ‘git2r’ successfully unpacked and MD5 sums checked
package ‘withr’ successfully unpacked and MD5 sums checked
package ‘devtools’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\mstrauch\AppData\Local\Temp\47\RtmpUJBLSS\downloaded_packages
devtools::install_github("michstrauch/TopHRU", dependencies = TRUE)
Downloading GitHub repo michstrauch/TopHRU@master
from URL https://api.github.com/repos/michstrauch/TopHRU/zipball/master
Installing topHRU
Installing 1 package: abind
Installing package into ‘C:/Users/mstrauch/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/abind_1.4-5.zip'
Content type 'application/zip' length 40002 bytes (39 KB)
downloaded 39 KB
package ‘abind’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\mstrauch\AppData\Local\Temp\47\RtmpUJBLSS\downloaded_packages
Installing 1 package: emoa
Installing package into ‘C:/Users/mstrauch/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/emoa_0.5-0.zip'
Content type 'application/zip' length 171105 bytes (167 KB)
downloaded 167 KB
package ‘emoa’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\mstrauch\AppData\Local\Temp\47\RtmpUJBLSS\downloaded_packages
Installing 1 package: ggplot2
Installing package into ‘C:/Users/mstrauch/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/ggplot2_2.2.1.zip'
Content type 'application/zip' length 2761235 bytes (2.6 MB)
downloaded 2.6 MB
package ‘ggplot2’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\mstrauch\AppData\Local\Temp\47\RtmpUJBLSS\downloaded_packages
Installing 1 package: plotly
Installing package into ‘C:/Users/mstrauch/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/plotly_4.5.6.zip'
Content type 'application/zip' length 817555 bytes (798 KB)
downloaded 798 KB
package ‘plotly’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\mstrauch\AppData\Local\Temp\47\RtmpUJBLSS\downloaded_packages
"C:/PROGRA1/R/R-321.3/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL
"C:/Users/mstrauch/AppData/Local/Temp/47/RtmpUJBLSS/devtools7e6c636d207/michstrauch-TopHRU-aa9f099"
--library="C:/Users/mstrauch/Documents/R/win-library/3.2" --install-tests
- installing source package 'topHRU' ...
It is recommended to use 'given' instead of 'middle'.
It is recommended to use 'given' instead of 'middle'.
** R
** data
*** moving datasets to lazyload DB
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'scales' 0.3.0 is being loaded, but >= 0.4.1 is required
ERROR: lazy loading failed for package 'topHRU' - removing 'C:/Users/mstrauch/Documents/R/win-library/3.2/topHRU'
Error: Command failed (1)
In this case, the issue could be solved by manually installing the following packages...
install.packages("scales")
install.packages("base64enc")
install.packages("viridisLite")
However, I remember other cases, where I also had to install...
install.packages("dplyr")
install.packages("gtable")
install.packages("htmlwidgets")
install.packages("purrr")
install.packages("tidyr")
it seems that devtools::install_github("path/to/repository", dependencies = TRUE) does not consider all recursive dependencies of the dependencies. Therefore, a workaround is now given in the readme and all the dependencies are simply installed prior to the topHRU installation
The workaround helps partly but still causes an error. Now the problem is related to plotly. Installing it from CRAN leads to incorrect installation of its dependencies (a number of packages is missing). Installation of plotly from github seems to work when "miniUI" is added to the list of required CRAN packages.
Unfortunately now another package is missing (yaml). The error popped up when applying the plot_pareto function.
Do I understand correctly that this calculator is not operational at the moment due to some packages in R being missing? Sorry, I'm a complete noob when it comes to programming but the instructions seemed easy enough that I want to try it out.