On Sat, 27 Apr 2013, Prof Brian Ripley wrote:
AFAIK pnmath is not a package on a public repository, and it seems it is
using R internals not part of the API and not exposed in R 3.0.0.
I presume you got this from ~luke/R/experimental ... the clue is in the
directory name. My understanding was that this would eventually be merged
into R rather than released as a package.
The intent is t merge it eventually; until that happens the intent is
to keep it working as an experimental package. It is experimental,
and it's math code has not been updated to reflect improvements in the
R library, so should be used with caution.
If you really want to use it you will need to modify the R sources to unhide
PRIMFUN and SET_PRIMFUN and re-compile.
These are now no longer hidden in R-devel and R-patched, so should be
available in the next R release.
Best,
luke
On 26/04/2013 19:39, Kjetil Halvorsen wrote:
Hola!
This is 64bit Lubuntu 13.04, with R-3.0.0 installed from
deb http://ppa.launchpad.net/marutter/rrutter/ubuntu raring main
via synaptic. gcc --version
gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3
sessionInfo()
R version 3.0.0 (2013-04-03)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=C LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] MASS_7.3-26
loaded via a namespace (and not attached):
[1] compiler_3.0.0 fortunes_1.5-0 tools_3.0.0
I am trying to install pnmath from the commandline (outside R), this is
what happens:
kjetil@kjetil-HP-Pavilion-dv4-Notebook-PC:~/R/src$ sudo R CMD INSTALL
pnmath_0.0-4.tar.gz
* installing to library ‘/usr/local/lib/R/site-library’
* installing *source* package ‘pnmath’ ...
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fopenmp -fpic -O2
-pipe -g -c bd0.c -o bd0.o
...
...
...
installing to /usr/local/lib/R/site-library/pnmath/libs
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object
'/usr/local/lib/R/site-library/pnmath/libs/pnmath.so':
/usr/local/lib/R/site-library/pnmath/libs/pnmath.so: undefined symbol:
PRIMFUN
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/usr/local/lib/R/site-library/pnmath’
I have installed sufficient libraries as to compile R itself from source
without problems!
Kjetil
[[alternative HTML version deleted]]
______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
--
Luke Tierney
Chair, Statistics and Actuarial Science
Ralph E. Wareham Professor of Mathematical Sciences
University of Iowa Phone: 319-335-3386
Department of Statistics and Fax: 319-335-3017
Actuarial Science
241 Schaeffer Hall email: luke-tier...@uiowa.edu
Iowa City, IA 52242 WWW: http://www.stat.uiowa.edu
______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel