ropensci / NLMR

📦 R package to simulate neutral landscape models 🏔
https://ropensci.github.io/NLMR/
65 stars 17 forks source link

Makevars flags do not work #61

Closed JohannesOberpriller closed 5 years ago

JohannesOberpriller commented 5 years ago

Hi Marco,

I just have seen, that the makevars does not work. One can not overwrite the CXX_STD compiler, but you can overwrite the one which builds the package by PKG_CXX_STD. However, the 11 standard is already the default compiler, but if you plan to change to another standard, the above flag will make it compile.

Cheers, Johannes

marcosci commented 5 years ago

Hi Johannes,

are you sure? Seems to work on every machine so far and the R Manual says the exact same thing:

https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Using-C_002b_002b11-code

Cheers, Marco

JohannesOberpriller commented 5 years ago

Hi Marco,

As I understand the concept and R manual, there are two makevars files important for the build of a package. The first is in in your library folder and sets the standard options. The second one, which is directly contained in the package can overwrite the standard-options. So far this has worked for me.

https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Using-Makevars

Cheers, Johannes

marcosci commented 5 years ago

done