[Rd] Utilizing the internet module

From: Jeffrey Horner <jeff.horner_at_vanderbilt.edu>
Date: Thu 23 Feb 2006 - 17:07:55 GMT


Hello all,

I'd like to utilize the R_Sock* functions from R_ext/R-ftp-http.h in my R package. The intent is to use these in conjunction with R_serialize()   to store R objects in a remote data store. I'm aware that version 2.2.1 of "Writing R extensions" explains that these may be undocumented and unstable, but I have a couple of questions:

  1. are they platform independent? I presume they are...
  2. What's the appropriate way to link against them? On Linux x86, I can do this with the Makevars:

PKG_LIBS=$(R_HOME)/modules/internet$(SHLIB_EXT)

but that doesn't work on Mac OS X 10.3.9 powerpc G4:

gcc -bundle -flat_namespace -undefined suppress -L/sw/lib
-L/usr/local/lib -o rmemcache.so rmemcache.o
/Users/hornerjr/src/R-2.2.1/modules/internet.so -lcc_dynamic
-L/Users/hornerjr/src/R-2.2.1/lib -lR

ld: /Users/hornerjr/src/R-2.2.1/modules/internet.so is input for the dynamic link editor, is not relocatable by the static link editor again

Thanks in advance,
--

Jeffrey Horner       Computer Systems Analyst         School of Medicine
615-322-8606         Department of Biostatistics   Vanderbilt University

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Feb 24 06:00:37 2006

This archive was generated by hypermail 2.1.8 : Thu 23 Feb 2006 - 22:16:07 GMT