Unable to install ggbiplot on 4.1.1 R

Hello, I'm unable to install ggbiplot on R, version 4.1.1 using the code :

library(devtools)
install_github("vqv/ggbiplot")
library(ggbiplot)

The library (devtools) is already installed and I can't process the second line of the code. How can I solve it? Here is the message:

library(devtools)
install_github("vqv/ggbiplot")
Downloading GitHub repo vqv/ggbiplot@HEAD
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?

1: All
2: CRAN packages only
3: None
4: cli (3.3.0 -> 3.4.0) [CRAN]

Enter one or more numbers, or an empty line to skip updates: 1
cli (3.3.0 -> 3.4.0) [CRAN]
Installing 1 packages: cli
Installation du package dans ‘C:/Users/StĂ©phane/Documents/R/win-library/4.1’
(car ‘lib’ n'est pas spĂ©cifiĂ©)

Une version binaire est disponible mais la version du source est plus récente:
binary source needs_compilation
cli 3.3.0 3.4.0 TRUE

installation du package source ‘cli’

trying URL 'https://cran.rstudio.com/src/contrib/cli_3.4.0.tar.gz'
Content type 'application/x-gzip' length 526797 bytes (514 KB)
downloaded 514 KB

  • installing source package 'cli' ...
    ** package 'cli' successfully unpacked and MD5 sums checked
    ERROR: cannot remove earlier installation, is it in use?
  • removing 'C:/Users/StĂ©phane/Documents/R/win-library/4.1/cli'
  • restoring previous 'C:/Users/StĂ©phane/Documents/R/win-library/4.1/cli'
    Avis dans file.copy(lp, dirname(pkgdir), recursive = TRUE, copy.date = TRUE) :
    problÚme lors de la copie de C:\Users\Stéphane\Documents\R\win-library\4.1\00LOCK-cli\cli\libs\i386\cli.dll vers C:\Users\Stéphane\Documents\R\win-library\4.1\cli\libs\i386\cli.dll: Permission denied

The downloaded source packages are in
‘C:\Users\StĂ©phane\AppData\Local\Temp\Rtmpwtmlny\downloaded_packages’
Error: Failed to install 'ggbiplot' from GitHub:
create process 'C:/PROGRA~1/R/R-41~1.1/bin/i386/Rcmd.exe' (system error 267, Nom de répertoire non valide.
) @win/processx.c:1040 (processx_exec)
In addition: Warning message:
In i.p(...) : installation of package ‘cli’ had non-zero exit status

thanks!

There are three possible things that can be causing problems here:

  • The cli package might be loaded in your current session which can block the update. Try restarting your R session and installing cli before loading any other package.

  • R has known issues with non-ASCII characters in the package library folder path. Try setting your package library in a folder that doesn't contain non-ASCII characters in its path.

  • Windows Security might be blocking the installation silently. Try white listing R and RStudio.

1 Like

Thank you for your answer!:slight_smile:
At the end, I created a new session in Windows with a name without accent (as "Stéphane") had one and it worked!

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.