error in installing ROI PACKAGE

Im unable to install ROI package on r, it shows this error
install.packages("ROI")
Warning in install.packages :
dependency ‘slam’ is not available

There is a binary version available but the source version is later:
binary source needs_compilation
ROI 0.3-0 0.3-2 FALSE

installing the source package ‘ROI’

trying URL 'https://cran.rstudio.com/src/contrib/ROI_0.3-2.tar.gz'
Content type 'application/x-gzip' length 110622 bytes (108 KB)

downloaded 108 KB

Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'zone/tz/2019a.1.0/zoneinfo/America/Los_Angeles'
ERROR: dependency ‘slam’ is not available for package ‘ROI’

  • removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/ROI’
    Warning in install.packages :
    installation of package ‘ROI’ had non-zero exit status

The downloaded source packages are in
‘/private/var/folders/6g/1vdzgmpd6sbfk2fmv526td4h0000gn/T/Rtmpuo49yg/downloaded_package

You are missing this dependency, you would have to install it with

install.packages('slam')

But there is an additional problem, it seems like you are using R 3.3, and slam package requires R >= 3.4.0, you would need to update R in order to begin able to install it.

Thank you for your response :smile:
It took me some time to figure out that i need to update R in order to install slam.

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