Rcmdr installation problem

Hi, I am using this program for the university and I have no idea how to solve this error. I appreciate any and all help.

I can't run rcmdr, I always get the same message. What am I doing wrong? I use the OS X version El Capitan. R 3.6.1 GUI 1.70 El Capitan build (7684)

> install.packages("Rcmdr", dependencies=T)
trying URL 'https://cran.rediris.es/bin/macosx/el-capitan/contrib/3.6/Rcmdr_2.6-0.tgz'
Content type 'application/x-gzip' length 5080620 bytes (4.8 MB)
==================================================
downloaded 4.8 MB


The downloaded binary packages are in
	/var/folders/gn/b79s24jd0695ycd9y1m0bm7c0000gn/T//Rtmp7Juz7D/downloaded_packages
> install.packages("arules", dependencies=T)
trying URL 'https://cran.rediris.es/bin/macosx/el-capitan/contrib/3.6/arules_1.6-4.tgz'
Content type 'application/x-gzip' length 2713455 bytes (2.6 MB)
==================================================
downloaded 2.6 MB


The downloaded binary packages are in
	/var/folders/gn/b79s24jd0695ycd9y1m0bm7c0000gn/T//Rtmp7Juz7D/downloaded_packages
> library("Rcmdr")
Loading required package: splines
Loading required package: RcmdrMisc
Loading required package: car
Loading required package: carData
Loading required package: sandwich
Loading required package: effects
Error: package or namespace load failed for ‘effects’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 there is no package called ‘nloptr’
Error: package ‘effects’ could not be loaded

Regards,

What happens when you try to install the nloptr package?

the same...

trying URL 'https://cran.rediris.es/bin/macosx/el-capitan/contrib/3.6/nloptr_1.2.1.tgz'
Content type 'application/x-gzip' length 488616 bytes (477 KB)
==================================================
downloaded 477 KB

What happens if you run library("Rcmdr") now?

Rcmdr depends on many packages, and those packages themselves depend on many other packages. Ideally, install.packages() would correctly traverse this complex dependency tree, but for various reasons (including temporary inconsistencies between CRAN mirrors), that doesn’t always happen.

When things go sideways, the thing to pay attention to is what package or packages the console messages say are missing, then try to install those missing packages directly, then restart your R session (close R GUI and reopen it, and say “no” if it asks you if you want to save your workspace) and try loading Rcmdr again. It can take a few rounds of this to get everything installed.

You may also want to check out the Rcmdr installation notes, if you haven’t already.

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