Dear R users,

we are trying to build a R package that includes a precompiled shared
library, let's say mylib.so. We created the skeleton of the package
and we moved the mylib.so file into the libs folder that we created at
the same level of the folders man and R. Moreover we created the file
NAMESPACE and we added the line useDynLib(mylib, .registration=TRUE).
The building step seems to work correctly but when we try to install
the package we get

** testing if installed package can be loaded
Error in library.dynam(lib, package, package.lib) :
  shared library 'mylib' not found

we cannot understand what's wrong and where R searches for the mylib.so files.

Any suggestion?

Thanks,

Michela and Francesco

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to