On Thu, 4 May 2000, Helgi Tomasson wrote:> Dear R-people > > Could someone give me a hint why dyn.load does not work > > > system("ls dyntilr.o") > dyntilr.o > > > > > dyn.load("dyntilr.o") > Error in dyn.load(x) : unable to load shared library > "/home/helgi/dyntilr.o"is dyntilr.o s shared library? I would expect dyntilr.so to be one. Under Linux, $> gcc -c dyntilr.c -o dyntilr.o $> ld -shared -o dyntilr.so dyntilr.o should work, or, much more simpler, create a package, put the sources in ./src and say $> R INSTALL -l my_lib_path my_R_package Torsten> > regards > > Helgi > > -- > Helgi Tomasson FAX: 354-552-6806 > University of Iceland PHONE:354-525-4571 > Faculty of Economics and Business Administration email:helgito at rhi.hi.is > Oddi v/ Sturlugotu > IS-101 Reykjavik > ICELAND > > > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > r-help 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-help-request at stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help 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-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Dear R-people Could someone give me a hint why dyn.load does not work> system("ls dyntilr.o")dyntilr.o>> dyn.load("dyntilr.o")Error in dyn.load(x) : unable to load shared library "/home/helgi/dyntilr.o" regards Helgi -- Helgi Tomasson FAX: 354-552-6806 University of Iceland PHONE:354-525-4571 Faculty of Economics and Business Administration email:helgito at rhi.hi.is Oddi v/ Sturlugotu IS-101 Reykjavik ICELAND -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help 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-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> Date: Thu, 04 May 2000 12:01:55 +0000 > From: Helgi Tomasson <helgito at rhi.hi.is> > X-Accept-Language: en > To: r-help at stat.math.ethz.ch > Subject: [R] dyn.load does not work > > Dear R-people > > Could someone give me a hint why dyn.load does not work > > > system("ls dyntilr.o") > dyntilr.o > > > > > dyn.load("dyntilr.o") > Error in dyn.load(x) : unable to load shared library > "/home/helgi/dyntilr.o"On all the systems I know of foo.o is an object not a shared library (and this is R not S-PLUS where dyn.load does load objects). Try using R SHLIB foo.c to make foo.so and dyn.load that. -- Brian D. Ripley, ripley at 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-help 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-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._