This is just for conformance with the "Writing R Extensions" manual
which recommends to use `"${R_HOME}/bin${R_ARCH_BIN}/Rscript"` rather
than `"${R_HOME}/bin/R" --vanilla --slave` for running R code in
Makevars files.
... | ... |
@@ -4,10 +4,10 @@ |
4 | 4 |
|
5 | 5 |
include Makevars.common |
6 | 6 |
|
7 |
-RHTSLIB_LIBS=$(shell echo 'Rhtslib::pkgconfig("PKG_LIBS")'|\ |
|
8 |
- "${R_HOME}/bin/R" --vanilla --slave) |
|
9 |
-RHTSLIB_CPPFLAGS=$(shell echo 'Rhtslib::pkgconfig("PKG_CPPFLAGS")'|\ |
|
10 |
- "${R_HOME}/bin/R" --vanilla --slave) |
|
7 |
+RHTSLIB_LIBS=$(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript" -e \ |
|
8 |
+ 'Rhtslib::pkgconfig("PKG_LIBS")') |
|
9 |
+RHTSLIB_CPPFLAGS=$(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript" -e \ |
|
10 |
+ 'Rhtslib::pkgconfig("PKG_CPPFLAGS")') |
|
11 | 11 |
|
12 | 12 |
PKG_LIBS=$(RHTSLIB_LIBS) |
13 | 13 |
PKG_CPPFLAGS=$(RHTSLIB_CPPFLAGS) |