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