Package installation on MAC

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


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

trying URL ''
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

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...


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


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.