Skip to content
Prev 2029 / 10988 Next

[Rcpp-devel] useDynLib

Thanks for the info about modularity. I'll definitely be wikipedia'ing that.
Also, thanks for clarifying the package author thing--I literally was
imagining some sort of function that writes something related to packages.
In particular with useDynLib, what type of argument(s) go(es) in it?
For example, do I literally copy a file object into it somehow?
Do I have a variable that is a string in ascii format that only exists
inside of the NAMESPACE file?
Do I have a variable that is a string somehow encoded in an SEXP type of
object inside C++?
Do I simply list a path name to a library?
Do I use the format of a name as if I were linking against a library and
specify a path name somewhere else?
I think there are a lot of possibilities, and I don't know where to start.
For example, say I want to link against libpng14.
On the machine I'm sitting at, it's located at:
/usr/local/lib/libpng14.a
How would I use useDynLib in that case?
On 3/31/11 10:49 PM, "Davor Cubranic" <cubranic at stat.ubc.ca> wrote: