Re: [R-pkg-devel] How to retrieve a flag set in configure.ac (filled in Makevars.in) during package installation in an R or C++ script ?

2020-08-17 Thread Ivan Krylov
On Sat, 15 Aug 2020 19:50:41 +0530 Akshit Achara wrote: > To access these files, I need to use the path of libminizinc (which > can change per installation). I want to extract this path from either > Makevars or configure to use it in my package. Just as Makevars is generated during ./configure

Re: [R-pkg-devel] How to retrieve a flag set in configure.ac (filled in Makevars.in) during package installation in an R or C++ script ?

2020-08-17 Thread Akshit Achara
Dear Andreas, Thanks for your answer! I also got an answer from Rcpp-devel list by Nik Pocuca. He suggested me to create an .RData or .rda file (say config.RData) in the data folder of my package and then execute the statement given below in Makevars.in to save the flag in the .RData file. $(R_HO

Re: [R-pkg-devel] How to retrieve a flag set in configure.ac (filled in Makevars.in) during package installation in an R or C++ script ?

2020-08-17 Thread Blätte , Andreas
Dear Akshit, in the configure script of my package RcppCWB, I use the command line call 'R CMD config ...' to get the installation flags. Calling 'R CMD config' will display options. For your scenario, you can use 'R CMD config CPPFLAGS' to get the value of CPPFLAGS. To call R CMD config saf