Using the syntax 'install.packages("later") --no-test-load' The syntax is either install.packages("later", type="source", INSTALL_opts="--no-test-load") from within R (perhaps with repos=NULL if from a local directory) or R CMD INSTALL --no-test-load later from outside of R, where 'later' must be a directory. Bill Dunlap TIBCO Software wdunlap tibco.com On Wed, Feb 27, 2019 at 11:14 AM Rich Shepard <rshepard at appl-ecosys.com> wrote:> On Wed, 27 Feb 2019, William Dunlap wrote: > > > Add the --no-test-load option to the install command and the unloadable > .so > > file should be left there so you can look at its dependencies with, e.g., > > 'R CMD ldd .../libs/later.so'. > > Bill, > > Using the syntax 'install.packages("later") --no-test-load' still produces > the same result: > > ** testing if installed package can be loaded > Error: package or namespace load failed for ?later? in dyn.load(file, > DLLpath = DLLpath, ...): > unable to load shared object '/usr/lib/R/library/later/libs/later.so': > /usr/lib/R/library/later/libs/later.so: undefined symbol: > __atomic_fetch_add_8 > Error: loading failed > Execution halted > ERROR: loading failed > > The later package was installed so why it's not updating now puzzles me. > I'm > running R-3.5.2 on Slackware-14.2. > > Regards, > > Rich > > ______________________________________________ > R-help at 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. >[[alternative HTML version deleted]]
On Wed, 27 Feb 2019, William Dunlap wrote:> The syntax is either > install.packages("later", type="source", INSTALL_opts="--no-test-load") > from within R (perhaps with repos=NULL if from a local directory) or > R CMD INSTALL --no-test-load later > from outside of R, where 'later' must be a directory.Bill, Thank you very much. I read ?install.packages and saw all the options but had no idea what to use. Boy howdy! Removing the load testing allowed the package to install: installing to /usr/lib/R/library/later/libs ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** installing vignettes * DONE (later) Is it worth exploring why testing loading failed here for this package? Best regards, Rich
The package will not load. The only reason to do test load is to examine why the package's .so file cannot be loaded. We know there is at least one function or data symbol that it cannot find, __atomic_fetch_add_8, wihch may be from boost::atomic. The ldd command may give some hints about missing libraries. Bill Dunlap TIBCO Software wdunlap tibco.com On Wed, Feb 27, 2019 at 11:56 AM Rich Shepard <rshepard at appl-ecosys.com> wrote:> On Wed, 27 Feb 2019, William Dunlap wrote: > > > The syntax is either > > install.packages("later", type="source", > INSTALL_opts="--no-test-load") > > from within R (perhaps with repos=NULL if from a local directory) or > > R CMD INSTALL --no-test-load later > > from outside of R, where 'later' must be a directory. > > Bill, > > Thank you very much. I read ?install.packages and saw all the options but > had no idea what to use. > > Boy howdy! Removing the load testing allowed the package to install: > > installing to /usr/lib/R/library/later/libs > ** R > ** inst > ** byte-compile and prepare package for lazy loading > ** help > *** installing help indices > ** building package indices > ** installing vignettes > * DONE (later) > > Is it worth exploring why testing loading failed here for this package? > > Best regards, > > Rich > > ______________________________________________ > R-help at 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. >[[alternative HTML version deleted]]