How do I see and replicate the R default Makevars configuration?
问题 I do not have a ~/.R/Makevars file and > tools::makevars_user() character(0) > tools::makevars_site() character(0) Yet, R must be reading the configuration from somewhere as .cpp files containing Rcpp exports in the package src subdirectory compile fine. I am interested to know how to write a Makefile.win in the src directory so that Rcpp files continue to compile, alongside TMB .cpp files. Currently a makefile like: all: fn1.dll fn2.dll fn1.dll: fn1.cpp Rscript --vanilla -e "TMB::compile(