Installing ggbiplot for 3.6.1 not available

Hey everyone,

I already read through some instructions regarding the installing ggbiplot, but I could not figure out an answer to my specific problem. Therefore, I hope I do not bother you, because you alredy explained it somewhere.

So what I have been basically doing:
I have started a new clean session and started with

install.packages("rlang")
install.packages("devtools")
library(devtools)
install_github("vqv/ggbiplot")

and I get at the end:

Version:1.0 StartHTML:0000000107 EndHTML:0000001880 StartFragment:0000000127 EndFragment:0000001862

Installing package into ‘C:/Users/Fabio.Krueger/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified) * installing source package 'ggbiplot' ... ** using staged installation ** R ** data ** byte-compile and prepare package for lazy loading Fehler: (konvertiert von Warnung) Paket 'ggplot2' wurde unter R Version 3.6.2 erstellt Ausführung angehalten ERROR: lazy loading failed for package 'ggbiplot' * removing 'C:/Users/Fabio.Krueger/Documents/R/win-library/3.6/ggbiplot' Error: Failed to install 'ggbiplot' from GitHub: (converted from warning) installation of package ‘C:/Users/FABIO~1.KRU/AppData/Local/Temp/Rtmpi0sVKX/file3e9044f630/ggbiplot_0.55.tar.gz’ had non-zero exit Status

Does anyone know how to solve this issue?

Thanks a lot in advance and kind regards,
FKrueger

Are you showing the whole error message you are getting? It seems to me that you are omitting some important parts.

Okay I was not sure how much is important, that is basically what I get after running the above mentioned commands:

"
Version:1.0 StartHTML:0000000107 EndHTML:0000013612 StartFragment:0000000127 EndFragment:0000013594

  • installing source package 'rlang' ... ** Paket 'rlang' erfolgreich entpackt und MD5 Summen überprüft ERROR: cannot remove earlier installation, is it in use? * removing 'C:/Users/Fabio.Krueger/Documents/R/win-library/3.6/rlang' * restoring previous 'C:/Users/Fabio.Krueger/Documents/R/win-library/3.6/rlang' Warnung in file.copy(lp, dirname(pkgdir), recursive = TRUE, copy.date = TRUE) Problem C:\Users\Fabio.Krueger\Documents\R\win-library\3.6\00LOCK-rlang\rlang\libs\x64\rlang.dll nach C:\Users\Fabio.Krueger\Documents\R\win-library\3.6\rlang\libs\x64\rlang.dll zu kopieren: Permission denied Warning in install.packages : installation of package ‘rlang’ had non-zero exit status The downloaded source packages are in ‘C:\Users\Fabio.Krueger\AppData\Local\Temp\Rtmpi0sVKX\downloaded_packages’ > install.packages("devtools") Installing package into ‘C:/Users/Fabio.Krueger/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified) trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/devtools_2.2.1.zip' Content type 'application/zip' length 342880 bytes (334 KB) downloaded 334 KB package ‘devtools’ successfully unpacked and MD5 sums checked The downloaded binary packages are in C:\Users\Fabio.Krueger\AppData\Local\Temp\Rtmpi0sVKX\downloaded_packages > library(devtools) Lade nötiges Paket: usethis Warning messages: 1: Paket ‘devtools’ wurde unter R Version 3.6.2 erstellt 2: Paket ‘usethis’ wurde unter R Version 3.6.2 erstellt > install_github("vqv/ggbiplot") Downloading GitHub repo vqv/ggbiplot@master These packages have more recent versions available. Which would you like to update? 1: All 2: CRAN packages only 3: None 4: stringi (1.4.3 -> 1.4.5) [CRAN] Enter one or more numbers, or an empty line to skip updates: 3 √ checking for file 'C:\Users\Fabio.Krueger\AppData\Local\Temp\Rtmpi0sVKX\remotes3e9010096549\vqv-ggbiplot-7325e88/DESCRIPTION' (347ms) - preparing 'ggbiplot': √ checking DESCRIPTION meta-information ... - checking for LF line-endings in source and make files and shell scripts - checking for empty or unneeded directories - looking to see if a 'data/datalist' file should be added - building 'ggbiplot_0.55.tar.gz' Installing package into ‘C:/Users/Fabio.Krueger/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified) * installing source package 'ggbiplot' ... ** using staged installation ** R ** data ** byte-compile and prepare package for lazy loading Fehler: (konvertiert von Warnung) Paket 'ggplot2' wurde unter R Version 3.6.2 erstellt Ausführung angehalten ERROR: lazy loading failed for package 'ggbiplot' * removing 'C:/Users/Fabio.Krueger/Documents/R/win-library/3.6/ggbiplot' Error: Failed to install 'ggbiplot' from GitHub: (converted from warning) installation of package ‘C:/Users/FABIO~1.KRU/AppData/Local/Temp/Rtmpi0sVKX/file3e9044f630/ggbiplot_0.55.tar.gz’ had non-zero exit status>
    "

does this help to understand the error better?

Either the package is loaded or you don't have write permissions on that folder.

Try restarting RStudio and running it as administrator

so after running a new RStudio session as administrator I still get the following Error

"
Version:1.0 StartHTML:0000000107 EndHTML:0000008078 StartFragment:0000000127 EndFragment:0000008060

library(devtools) Lade nötiges Paket: usethis Warning messages: 1: Paket ‘devtools’ wurde unter R Version 3.6.2 erstellt 2: Paket ‘usethis’ wurde unter R Version 3.6.2 erstellt > install_github("vqv/ggbiplot") Downloading GitHub repo vqv/ggbiplot@master √ checking for file 'C:\Users\install\AppData\Local\Temp\RtmpiCRMxJ\remotes89c7b126c38\vqv-ggbiplot-7325e88/DESCRIPTION' ... - preparing 'ggbiplot': √ checking DESCRIPTION meta-information ... - checking for LF line-endings in source and make files and shell scripts - checking for empty or unneeded directories - looking to see if a 'data/datalist' file should be added - building 'ggbiplot_0.55.tar.gz' * installing source package 'ggbiplot' ... ** using staged installation ** R ** data ** byte-compile and prepare package for lazy loading Fehler: (konvertiert von Warnung) Paket 'ggplot2' wurde unter R Version 3.6.2 erstellt Ausführung angehalten ERROR: lazy loading failed for package 'ggbiplot' * removing 'C:/Program Files/R/R-3.6.1/library/ggbiplot' Error: Failed to install 'ggbiplot' from GitHub: (converted from warning) installation of package ‘C:/Users/install/AppData/Local/Temp/RtmpiCRMxJ/file89c49e55b83/ggbiplot_0.55.tar.gz’ had non-zero exit Status
"

It seems to be using a precompiled version that is not compatible with your R version, try updating R to the latest version (3.6.2) and don't forget to update your packages with checkBuilt = TRUE option.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.