Hello, It looks like demo("dyn.load") is broken for non ".so" extentions.> demo("dyn.load")demo(dyn.load) ---- ~~~~~~~~ Type <Return> to start :> dyn.load("zero.so")Error in dyn.load(x) : unable to load shared library "/home/absd00t/zero.so": can't open /home/absd00t/zero.so>It looks like zero.R problem. It is looking for zero.* in my home dir. If I do : ~>R COMPILE zero.c gcc -I/usr/include/Motif1.1 -I/usr/include/X11R4 -I/home/absd00t/local/include -fpic -I/home/absd00t/local/lib/R/include -c zero.c -o zero.o ~>R SHLIB -o zero.sl zero.o ld -b -o zero.sl zero.o -L/home/absd00t/local/lib -lf2c -lm ~>R R : Copyright 1999, The R Development Core Team Version 0.65.0 Under development (unstable) (April 12, 1999) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type "?license" or "?licence" for distribution details. R is a collaborative project with many contributors. Type "?contributors" for a list. Type "demo()" for some demos, "help()" for on-line help, or "help.start()" for a HTML browser interface to help. Type "q()" to quit R.> dyn.load("zero.sl") > source("zero.R") <--- after changing zero.so to zero.sl[1] 1.5 [1] 1.50000002235174>Seems to be working OK. Osman -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> From: U-E59264-Osman F Buyukisik <absd00t@c1186.ae.ge.com> > > Hello, > It looks like demo("dyn.load") is broken for non ".so" extentions.Broken? Has it ever worked? You need dyn.load(paste("zero", .Platform$dynlib.ext, sep=".")) and I will put that in the release branch as this is a bug fix. -- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._