From simon.urbanek at r-project.org  Wed Dec 15 19:42:34 2010
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Wed, 15 Dec 2010 13:42:34 -0500
Subject: [Rd] Namespace File
In-Reply-To: <970548.83885.qm@web59712.mail.ac4.yahoo.com>
References: <362962.42310.qm@web59712.mail.ac4.yahoo.com>
	<80693E0D-7A0C-4678-B714-314421FFEC32@r-project.org>
	<970548.83885.qm@web59712.mail.ac4.yahoo.com>
Message-ID: <FBEFE8CB-40B0-4AAC-B9ED-D7837297C975@r-project.org>


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
> 
> 
> 
> 
> 



[Rd] Namespace File
Simon Urbanek