From simon.urbanek at r-project.org  Wed Dec 15 21:57:22 2010
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Wed, 15 Dec 2010 15:57:22 -0500
Subject: [Rd] Namespace File
In-Reply-To: <386784.94946.qm@web59704.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>
	<FBEFE8CB-40B0-4AAC-B9ED-D7837297C975@r-project.org>
	<55476.99277.qm@web59712.mail.ac4.yahoo.com>
	<2BCFE4FC-C71E-4912-A71A-2F894684F5D8@r-project.org>
	<386784.94946.qm@web59704.mail.ac4.yahoo.com>
Message-ID: <83093245-2C5C-42B0-9374-339F46107992@r-project.org>

Fabio,

you must have
dyn.load("Bayesthres.so")
somewhere in your R code according to your output - that is wrong and have to remove it as that will happen automatically via NAMESPACE.
Also, please, do read what I wrote in the last e-mail - you're still running it on your working copy.

Cheers,
Simon

BTW: in order to avoid us having to guess what you did wrong it would be much easier if you simply put the package somewhere so we can check it - that would save us and you quite a bit of time.


On Dec 15, 2010, at 3:34 PM, Fabio Mathias Corr?a wrote:

> See the complete log
> 
> fmc at raquel-laptop ~ $ R CMD check Bayesthres
> * using log directory ?/home/fmc/Bayesthres.Rcheck?
> * using R version 2.12.0 (2010-10-15)
> * using platform: i486-pc-linux-gnu (32-bit)
> * using session charset: UTF-8
> * checking for file ?Bayesthres/DESCRIPTION? ... OK
> * this is package ?Bayesthres? version ?0.1-0?
> * checking package dependencies ... OK
> * checking if this is a source package ... WARNING
> Subdirectory ?Bayesthres/src? contains object files.
> * checking for executable files ... OK
> * checking whether package ?Bayesthres? can be installed ... ERROR
> Installation failed.
> See ?/home/fmc/Bayesthres.Rcheck/00install.out? for details.
> 
> 
> File 00install.out
> 
> 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?
> 
> Best wishes
> 
> 
> 
> 
>              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 <r-devel at r-project.org>
> Enviadas: Quarta-feira, 15 de Dezembro de 2010 17:10:21
> Assunto: Re: [Rd] Namespace File
> 
> 
> On Dec 15, 2010, at 1:56 PM, Fabio Mathias Corr?a wrote:
> 
>> Dear,
>> 
>> I am using Ubuntu linux and R2.12.0
>> The trial version is in my home.
>> 
>> \home\Bayesthres~$
>> 
>> To perform the R CMD check
>> 
>> \home~$ R CMD check Bayesthres
>> 
> 
> That is in general not a good idea, especially if you ever run things inside by 
> hand for testing (because that will pollute the build). Make sure you clean your 
> tree and use R CMD build followed by R CMD check on the resulting tar ball. Does 
> the issue persist?
> 
> 
>> Within the directory Bayesthres, have:
>> 
>> Directories: inst, man, R and src
>> 
> 
> What is in inst? Make sure you have no binaries there.
> 
> Cheers,
> Simon
> 
> 
>> 
>> ... 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
>> 
>> 
>> 
>>             F?bio Mathias Corr?a
>>        Departamento de Estat?stica
>>  Universidade Estadual de Santa Cruz
>> 
>> 
>> 
>> 
>> 
> 
> 
> 
> 
> 



[Rd] Namespace File
Simon Urbanek