Error when trying to install glmnet 'package not available for R version'

I am getting the error when trying to install glmnet:

Warning in install.packages :
package ‘glmnet’ is not available (for R version 3.5.2)

I do not have admin privileges to update my version of R. Is there another way to address this?

Thank you!

You could try installing an older version with remotes::install_version() but I don't know which one is compatible with R 3.5.2

Thanks for your quick reply. I tried: remotes::install_version('glmnet', version = '2.0-18')

...and am getting the following error message about compilation failure and gfortran:

gfortran -fPIC -g -O2 -c glmnet5dpclean.f -o glmnet5dpclean.o
make: gfortran: No such file or directory
make: *** [glmnet5dpclean.o] Error 1
ERROR: compilation failed for package ‘glmnet’

  • removing ‘/Users/meghanbyrne/Library/R/3.5/library/glmnet’
    Error: Failed to install 'unknown package' from URL:
    (converted from warning) installation of package ‘/var/folders/b7/11vgsqxs32v11ss28278gl7h0000gp/T//Rtmp6U26K5/remotes8d95368fd916/glmnet’ had non-zero exit status

Any help on this would be appreciated

You need to install the recommended development tools for MacOS systems

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