Re: [R] empty `Rscript -e "Rcpp:::LdFlags()"` prevents installation

2025-05-09 Thread Ralf Goertz via R-help
I wrote > 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

[R] empty `Rscript -e "Rcpp:::LdFlags()"` prevents installation

2025-05-09 Thread Ralf Goertz via R-help
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++

[R] return inconsistency?

2025-04-30 Thread Ralf Goertz via R-help
I made a stupid error when programming a function. I used > return(OR^2+6*OR+1)/(OR*se^2) Being parenthesis blind it took me half an hour to find the reason for the nonsensical results I got. I should have written > return((OR^2+6*OR+1)/(OR*se^2)) Having said that why is the first variant (whi