[R] g++ error causes non-zero exit status for package installation

Dirk Eddelbuettel edd @ending from debi@n@org
Sat Jan 5 22:32:25 CET 2019


On 5 January 2019 at 13:13, Henrik Bengtsson wrote:
| On Sat, Jan 5, 2019 at 9:41 AM Dirk Eddelbuettel <edd using debian.org> wrote:
| >
| >
| > On 5 January 2019 at 09:14, William Dunlap via R-help wrote:
| > | You would get these errors ("R: file or directory not found, version: file
| > | or directory not found...") if you had a ~/.Rprofile file containing the
| > | line 'cat(version$version.string, sep="\n").
| >
| > Well spotted -- very much so. That is bound to break use within src/Makevars
| > and alike. If you must do something in ~/.Rprofile either make it silent, or
| > make it conditional based on if (interactive()) { ...that_code_here... }
| 
| Interesting problem.  One way to workaround this startup issue with:
| 
|   PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"`
| 
| used by minqa:src/Makevars
| (https://r-forge.r-project.org/scm/viewvc.php/pkg/minqa/src/Makevars?view=markup&root=optimizer),

Nothing like 'Read the source, Luke!' :)

The *real* problem here is that command has been *obsolete* since early 2014
or for almost five years -- Rcpp does NOT require linking!

Hence the command is a null-op now, provided for backwards-compatibility:

     R> Rcpp:::LdFlags()
     R> 

Then again minqa has not been updated since 2014 either so there...

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org



More information about the R-help mailing list