Namespace File
On Dec 15, 2010, at 1:31 PM, Fabio Mathias Corr?a wrote:
Dear Simon
By using useDynLib (Bayesthres) in NAMESPACE file. Appeared another error:
Error in dyn.load("Bayesthres.so") :
unable to load shared object '/home/fmc/Bayesthres/Bayesthres.so':
/home/fmc/Bayesthres/Bayesthres.so: cannot open shared object file: No such
file or directory
ERROR: lazy loading failed for package ?Bayesthres?
* removing ?/home/fmc/Bayesthres.Rcheck/Bayesthres?
... but that's an entirely wrong place - I suspect you have some real issues in the way your package is constructed. Are you sure you have the correct layout and are using the *packaged* sources and not your working tree? (You didn't tell us anything about the package so there are many things that may be wrong - also you omitted the most basic details such as R version and platform...) Cheers, Simon
Now he is not recognizing the file Bayesthres.so
Grateful for the help.
F?bio Mathias Corr?a
Departamento de Estat?stica
Universidade Estadual de Santa Cruz
----- Mensagem original ----
De: Simon Urbanek <simon.urbanek at r-project.org>
Para: Fabio Mathias Corr?a <fabio.ufla at yahoo.com.br>
Cc: r-devel at r-project.org
Enviadas: Quarta-feira, 15 de Dezembro de 2010 13:41:34
Assunto: Re: [Rd] Namespace File
On Dec 15, 2010, at 6:57 AM, Fabio Mathias Corr?a wrote:
Dear colleagues,
Problem solved with:
".First.lib" <- function(lib, pkg)
{
library.dynam("Bayesthres", package = pkg, lib.loc = lib)
return(invisible(0))
}
Well, that's shooting at a clay pigeon with a missile ;). You could have done the same simply using useDynLib(Bayesthres) in the NAMESPACE. Your issue is very likely just a mixup of cases as there is no "vuA" symbol in Fortran as all symbols are lower-case (at the object file level). Cheers, Simon