Trying to install Rcmdr but error msgs for other packages appear

Hello,
I am trying to download Rcmdr. I chose my CRAN Mirror and tried to install the Rcmdr by typing: install.packages("Rcmdr")
It tells me that the packages are successfully

installed:
Warning in install.packages("Rcmdr") :
  'lib = "C:/Program Files/R/R-4.0.2/library"' is not writable
also installing the dependencies ‘abind’, ‘relimp’



package ‘abind’ successfully unpacked and MD5 sums checked
package ‘relimp’ successfully unpacked and MD5 sums checked
package ‘Rcmdr’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in

I tried to open the library by typing: > library(Rcmdr)

I keep getting an error msg that says:
Loading required package: splines
Loading required package: RcmdrMisc
Loading required package: car
Loading required package: carData
Error: package or namespace load failed for ‘car’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 there is no package called ‘vctrs’
Error: package ‘car’ could not be loaded

I found some recommended solutions and tried them:

> install.packages("splines")
Warning: package ‘splines’ is in use and will not be installed
> .libPaths(splines)
Error in path.expand(new) : object 'splines' not found
> find.package(splines)
Error in find.package(splines) : object 'splines' not found
> find.package(RcmdrMisc)
Error in find.package(RcmdrMisc) : object 'RcmdrMisc' not found
> find.package(car)
Error in find.package(car) : object 'car' not found
> find.package(carData)
Error in find.package(carData) : object 'carData' not found
> install.packages(carData)
Error in install.packages(carData) : object 'carData' not found
> install.packages("pkgconfig", dependencies = TRUE)
Installing package into ‘C:/....’
(as ‘lib’ is unspecified)
also installing the dependencies ‘assertthat’, ‘cli’, ‘R6’, ‘withr’, ‘testthat’, ‘disposables’
...

package ‘assertthat’ successfully unpacked and MD5 sums checked
package ‘cli’ successfully unpacked and MD5 sums checked
package ‘R6’ successfully unpacked and MD5 sums checked
package ‘withr’ successfully unpacked and MD5 sums checked
package ‘testthat’ successfully unpacked and MD5 sums checked
package ‘disposables’ successfully unpacked and MD5 sums checked
package ‘pkgconfig’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
        C:\....
> library(Rcmdr)
Loading required package: RcmdrMisc
Loading required package: car
Error: package or namespace load failed for ‘car’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 there is no package called ‘vctrs’
Error: package ‘car’ could not be loaded
> install.packages("data.table")
Installing package into ‘C:/....’
(as ‘lib’ is unspecified)

package ‘data.table’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
        C:...
> install.packages("car")
Installing package into ‘C:...’
(as ‘lib’ is unspecified)
also installing the dependency ‘maptools’


package ‘maptools’ successfully unpacked and MD5 sums checked
package ‘car’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
        C:...
> library(Rcmdr)
Loading required package: RcmdrMisc
Loading required package: car
Error: package or namespace load failed for ‘car’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 there is no package called ‘vctrs’
Error: package ‘car’ could not be loaded
> install.packages("hms")
Installing package into ‘....
(as ‘lib’ is unspecified)
also installing the dependency ‘vctrs’


package ‘vctrs’ successfully unpacked and MD5 sums checked
package ‘hms’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
        C....
> install.packages("car")
Installing package into ‘C....’
(as ‘lib’ is unspecified)


package ‘car’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
        C:\.....
> install.packages("RColorBrewer")
Installing package into ‘....
(as ‘lib’ is unspecified)


package ‘RColorBrewer’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
        C:....
> library("Rcmdr")
Loading required package: RcmdrMisc
Loading required package: car
Error: package or namespace load failed for ‘car’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 there is no package called ‘pillar’
Error: package ‘car’ could not be loaded
> 

I tried uninstalling the program, restarting my computer but I had no luck in R. Please help me.

I think you were heading in the right direction but stopped short... the last error tells you pillar is missing, so try to install that... then whatever else is needed.

Thank you so much! I have been trying to do it for a week. As you said I am stopping WAY too soon. It is up and running.
THANK YOU!

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.