Welcome to the community!
.R/Makevars
is a file, not a directory. Remove the directory, and I believe that the file is not really needed, but you can put compiler flags there if needed, i.e., CXX14FLAGS=-O3 -mtune=native -march=native -w
In ~/.Rprofile
(notice that it’s placed directly in your home directory) you can put this to avoid a bug in RStudio
if you use that:
## WORKAROUND: https://github.com/rstudio/rstudio/issues/6692
## Revert to 'sequential' setup of PSOCK cluster in RStudio Console on macOS and R 4.0.0
if (Sys.getenv("RSTUDIO") == "1" && !nzchar(Sys.getenv("RSTUDIO_TERM")) &&
Sys.info()["sysname"] == "Darwin" ) {
parallel:::setDefaultClusterOptions(setup_strategy = "sequential")
}