From fabio.ufla at yahoo.com.br  Wed Dec 15 19:31:45 2010
From: fabio.ufla at yahoo.com.br (=?utf-8?B?RmFiaW8gTWF0aGlhcyBDb3Jyw6ph?=)
Date: Wed, 15 Dec 2010 10:31:45 -0800 (PST)
Subject: [Rd]  Namespace File
In-Reply-To: <80693E0D-7A0C-4678-B714-314421FFEC32@r-project.org>
References: <362962.42310.qm@web59712.mail.ac4.yahoo.com>
	<80693E0D-7A0C-4678-B714-314421FFEC32@r-project.org>
Message-ID: <970548.83885.qm@web59712.mail.ac4.yahoo.com>

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?

 
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


 


[Rd] Namespace File
=?utf-8?B?RmFiaW8gTWF0aGlhcyBDb3Jyw6ph?=