On 5 January 2019 at 13:13, Henrik Bengtsson wrote: | On Sat, Jan 5, 2019 at 9:41 AM Dirk Eddelbuettel <e...@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 | e...@debian.org ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.