[R] empty `Rscript -e "Rcpp:::LdFlags()"` prevents installation
Ralf Goertz
r_goertz @end|ng |rom web@de
Fri May 9 10:39:28 CEST 2025
Hi,
sometimes packages (in this case "pbv") can't be installed on my linux
system because in the tarball in src/Makevars there is a line like
PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"` $(LAPACK_LIBS)…
The command within the backticks doesn't return anything (i.e, no
additional c++ libraries are needed) but because of the backticks an
empty argument is passed to the linker which makes it fail. Using $()
instead of the backticks solves the problem. Should this be reported to
the package author or is it a problem common enough so that developer's
guidelines should address this?
More information about the R-help
mailing list