I am trying to install glmnet on an HPC by running install.package("glmnet"). However, right after downloading, I get the following error: Error: C++17 standard requested but CXX17 is not defined.

I found a similar error message here and suspect that I have to do similar edits to my Makevars file. However, I was not sure what exact edits I should make, because glmnet also has Fortran components, instead of "just" C++, like the package which is linked in the post above.

Any help on how I might be able to install the package is much appreciated!

Cheers!

Related questions 10 What/where is the ~/.R/Makevars file? 3 Can't run glmnet() R package : " could not find function "lengths" " 4 Why can't I install "forecast" package in RStudio? Related questions 10 What/where is the ~/.R/Makevars file? 3 Can't run glmnet() R package : " could not find function "lengths" " 4 Why can't I install "forecast" package in RStudio? 1 Unable to install R packages due to library not found 0 Issues with installing "terra" package in R Studio on Windows 11 1 fatal error: cannot execute 'cc1': execvp: Permission denied 89 Using data.table package inside my own package 1 Install kernlab package on R Load 5 more related questions Show fewer related questions

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.