Error at loading package "rcmdr"

Dear community,

i would like to install the R Commander, but it doesn't work:

I startet with:
package:Rcmdr
install.packages("Rcmdr")
library("Rcmdr")

But i get the following output:

library("Rcmdr")
Lade nötiges Paket: RcmdrMisc
Lade nötiges Paket: car
Error: package or namespace load failed for ‘car’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
Namensraum ‘vctrs’ 0.2.0 ist bereits geladen, aber >= 0.3.0 wird gefordert
Fehler: Paket ‘car’ konnte nicht geladen werden
Zusätzlich: Warnmeldungen:
1: Paket ‘Rcmdr’ wurde unter R Version 3.6.3 erstellt
2: Paket ‘RcmdrMisc’ wurde unter R Version 3.6.3 erstellt
3: Paket ‘car’ wurde unter R Version 3.6.3 erstellt

Could you please help me?
Thanks a lot

Install the car package

install.packages("car")

Update the vctrs package

install.packages("vctrs")

Note: To avoid posible issues, restart your R session before installing the new packages

Is is still not possible:
R always give me the message in the uploaded picture.
When i click Yes, then the message pops up again and again..

Restart Rstudio before installing the packages

I did this many times. It doesn't work. Thank you for your help, but i think i need more

Can you be more specific? what is the actual error message you get?

First, when i load car i get this output:

> install.packages("car")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/maria/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
versuche URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/car_3.0-10.zip'
Content type 'application/zip' length 1567935 bytes (1.5 MB)
downloaded 1.5 MB

package ‘car’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	C:\Users\maria\AppData\Local\Temp\RtmpozjNxs\downloaded_packages

And then i load vctrs and get this output:

> install.packages("vctrs")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/maria/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependency ‘rlang’

There is a binary version available but the source version is later:
binary source needs_compilation
rlang 0.4.8 0.4.9 TRUE

Binaries will be installed
versuche URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/rlang_0.4.8.zip'
Content type 'application/zip' length 1149154 bytes (1.1 MB)
downloaded 1.1 MB

versuche URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/vctrs_0.3.5.zip'
Content type 'application/zip' length 1277726 bytes (1.2 MB)
downloaded 1.2 MB

package ‘rlang’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘rlang’
Warning in install.packages :
Problem C:\Users\maria\Documents\R\win-library\3.6\00LOCK\rlang\libs\x64\rlang.dll nach C:\Users\maria\Documents\R\win-library\3.6\rlang\libs\x64\rlangdll zu kopieren: Permission denied
Warning in install.packages :
restored ‘rlang’
package ‘vctrs’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\maria\AppData\Local\Temp\RtmpCO9YqM\downloaded_packages

I think this works, should i also do: library(car) and library(vctrs) ??

No, restart your R session ones more and then try to load Rcmdr

library(Rcmdr)

I startet a new clean session - should i first install the package Rcmdr again in the new clean session before i load the library oder is it still in my r packages?

That is not necessary, just load the package.

Oh no.. i did it but again the same output:

library(Rcmdr)
Lade nötiges Paket: splines
Lade nötiges Paket: RcmdrMisc
Lade nötiges Paket: car
Lade nötiges Paket: carData
Error: package or namespace load failed for ‘car’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
Namensraum ‘rlang’ 0.4.0 ist bereits geladen, aber >= 0.4.7 wird gefordert
Fehler: Paket ‘car’ konnte nicht geladen werden
Zusätzlich: Warnmeldungen:
1: Paket ‘Rcmdr’ wurde unter R Version 3.6.3 erstellt
2: Paket ‘RcmdrMisc’ wurde unter R Version 3.6.3 erstellt
3: Paket ‘car’ wurde unter R Version 3.6.3 erstellt
4: Paket ‘carData’ wurde unter R Version 3.6.3 erstellt

This is a different issue, you have to update the rlang package

install.packages("rlang")

Alternatively, you can update all your packages at once

update.packages(repos='https://cran.rstudio.com/', ask=FALSE, checkBuilt=TRUE)

Ok thank you, i tried both. I still get the same output.
To load Rcmdr is still impossible. Maybe there isn't a solution for my problem and i have to work without the commander..

If you have successfully updated rlang it is not possible that you are getting the same output, please be specific and post your error messages, otherwise, we can't help you.

This is my output after installing rlang:

> install.packages("rlang")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/maria/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)

  There is a binary version available but the source version is later:
      binary source needs_compilation
rlang  0.4.8  0.4.9              TRUE

  Binaries will be installed
versuche URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/rlang_0.4.8.zip'
Content type 'application/zip' length 1149154 bytes (1.1 MB)
downloaded 1.1 MB

package ‘rlang’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘rlang’
Warning in install.packages :
  Problem C:\Users\maria\Documents\R\win-library\3.6\00LOCK\rlang\libs\x64\rlang.dll nach C:\Users\maria\Documents\R\win-library\3.6\rlang\libs\x64\rlang.dll zu kopieren: Permission denied
Warning in install.packages :
  restored ‘rlang’

The downloaded binary packages are in
	C:\Users\maria\AppData\Local\Temp\RtmpasUWer\downloaded_packages

And after this i load Rcmdr:

library(Rcmdr)
Lade nötiges Paket: splines
Lade nötiges Paket: RcmdrMisc
Lade nötiges Paket: car
Lade nötiges Paket: carData
Error: package or namespace load failed for ‘car’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
Namensraum ‘rlang’ 0.4.0 ist bereits geladen, aber >= 0.4.7 wird gefordert
Fehler: Paket ‘car’ konnte nicht geladen werden
Zusätzlich: Warnmeldungen:
1: Paket ‘Rcmdr’ wurde unter R Version 3.6.3 erstellt
2: Paket ‘RcmdrMisc’ wurde unter R Version 3.6.3 erstellt
3: Paket ‘car’ wurde unter R Version 3.6.3 erstellt
4: Paket ‘carData’ wurde unter R Version 3.6.3 erstellt

same as before..

The rlang installation has failed becasue the package is already loaded, try restarting RStudio before installing the package, or manually delete the folder.

1 Like

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.