[R] Problem with package development
Duncan Murdoch
murdoch.duncan at gmail.com
Wed Jun 1 00:28:46 CEST 2011
On 11-05-31 4:58 PM, Nipesh Bajaj wrote:
> I have been struggling for last one hour but not yet any through.
>
> However again I recreate the package.skeleton and run R CMD check trial3
>
> Here are the errors:
>
> warning in dir.create(pkgoutdir, mode = "0755"):
> cannot create dir 'c:\Program files\R\R-2.13.0\bin\trial3.Rcheck',
> reason .................
> Error in printLog(Log, "", text, "\n"): object 'Log' not found
> Execution haulted
>
> Why I am getting this error? what is that "Log". I will really
> appreciate if somebody please help me to figure out.
I suspect you are trying to run R CMD check in the directory c:\Program
files\R\R-2.13.0\bin, but you don't have write permission there.
You should put your files in a directory/folder where you have full
read/write permissions.
Duncan Murdoch
>
> Thanks,
>
> On Wed, Jun 1, 2011 at 1:20 AM, Nipesh Bajaj<bajaj141003 at gmail.com> wrote:
>> Actually partly I followed. Here is the more details what I have done so far:
>>
>> 1. Edit the help file skeletons in 'man', possibly combining help
>> files for multiple functions.
>> I have modified with following:
>> \name{fn1}
>> \alias{fn1}
>>
>> \title{
>> A function.
>> }
>>
>> \description{
>> A function.
>> }
>>
>> \usage{
>> A function.
>> }
>>
>> \arguments{
>> A function.
>> }
>>
>> \value{
>> A function.
>> }
>>
>> \author{
>> \bold{Me}
>> \cr
>> \email{Me at me.com}
>> }
>>
>> 2. Edit the exports in 'NAMESPACE', and add necessary imports.
>> Actually I really do not know what I would do here. In the
>> corresponding file, only "exportPattern("^[[:alpha:]]+")" is there.
>> Therefore I put that unaltered.
>>
>> 3. Put any C/C++/Fortran code in 'src'.
>> I do not have any such code
>>
>> 4. If you have compiled code, add a useDynLib() directive to 'NAMESPACE'.
>> Again I do not know what to do, so ingored this step.
>>
>> 5. Run R CMD build to build the package tarball.
>> * Run R CMD check to check the package tarball.
>>
>> I did not follow this step exactly. What I done is, put 'trial3'
>> folder in R/R-2.13.0bin folder (after above modification), from the
>> R-working folder. Then just run R CMD INSTALL trial3. However
>> previously with this job, I could create package effectively. After
>> updating R to the current version my problem starts.
>>
>> Those are not sufficient?
>>
>> Thanks,
>>
>> On Wed, Jun 1, 2011 at 1:09 AM, Duncan Murdoch<murdoch.duncan at gmail.com> wrote:
>>> On 11-05-31 3:36 PM, Nipesh Bajaj wrote:
>>>>
>>>> Dear all, I am having a strage problem while I was trying to build a
>>>> package. Here is my package skeleton:
>>>>
>>>> fn1<- Vectorize(function(x,y,z) {
>>>> return(x + y +z)
>>>> }, vectorize.args = c("x"), SIMPLIFY = TRUE)
>>>> package.skeleton("trial3",namespace = TRUE)
>>>
>>> Did you follow the instructions that package.skeleton printed?
>>>
>>> Duncan Murdoch
>>>
>>>>
>>>> However when I tun "R CMD INSTALL trial3" in CMD, the execution
>>>> stopped with following message:
>>>>
>>>> *** installing help indices
>>>> ** building package indices...
>>>> ** testing if install package can be loaded
>>>> Error: unexpected symbol in "tools:::test_load_package(.............."
>>>> Execution haulted
>>>> ERROR: loading failed.............
>>>>
>>>> I am using R 2.13.0 in Vista with latest Rtools installed. Can
>>>> somebody guide me where I have done wrong?
>>>>
>>>> Thanks,
>>>>
>>>> ______________________________________________
>>>> R-help at 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.
>>>
>>>
>>
More information about the R-help
mailing list