Package installation on MAC

package-installation

#1

Please help. Can't install this package on R.

Mathieu


> install.packages("FRAPO", dependencies = FALSE)
installing the source package ‘FRAPO’

trying URL 'https://cran.cnr.berkeley.edu/src/contrib/FRAPO_0.4-1.tar.gz'
Content type 'application/x-gzip' length 1701076 bytes (1.6 MB)
==================================================
downloaded 1.6 MB

ERROR: dependency ‘Rglpk’ is not available for package ‘FRAPO’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/FRAPO’
Warning in install.packages :
  installation of package ‘FRAPO’ had non-zero exit status

The downloaded source packages are in
	‘/private/var/folders/v0/n1wmtpgj7bjbp17231ql53740000gn/T/RtmpKTWwkN/downloaded_packages’

#2

Hi! Welcome!

This line:

install.packages("FRAPO", dependencies = FALSE)

says to install FRAPO, but not any of the other packages it depends on. That only makes sense if you already have those other packages installed. Instead, it looks like at least one of them (Rglpk) is not installed, so installation of FRAPO fails.

What happens if you try either...

install.packages("FRAPO")

(leaves dependencies at its default setting, which installs the most critical dependencies but not optional suggested packages)

...Or

install.packages("FRAPO", dependencies = TRUE)

(installs all dependencies and suggested packages)

Note: This question doesn’t seem to have anything to do with the RStudio IDE (see RStudio vs R — what’s the difference?) so I’ve moved it to a more appropriate category.