[R] 'non-standard' folder names in R package

Tao Shi shitao at hotmail.com
Wed Aug 1 00:26:34 CEST 2007


Oops, somehow I missed that part.  Thank you very much!

....Tao


>From: Uwe Ligges <ligges at statistik.uni-dortmund.de>
>To: Tao Shi <shitao at hotmail.com>
>CC: r-help at stat.math.ethz.ch
>Subject: Re: [R] 'non-standard' folder names in R package
>Date: Tue, 31 Jul 2007 11:52:10 +0200
>
>
>
>Tao Shi wrote:
>>Hi list,
>>
>>I use a .xml file for a function's demo in the R package I'm creating.  
>>Since it doesn't belong to any of the 'standard' folders, i.e. those 
>>mentioned in the 'Writing R Extension', I put it in a folder call "myXML", 
>>much like the 'iris.xl' file in 'xls' folder from 'gdata' package, for 
>>example.  After running R CMD build, I could see the .xml file is in the 
>>..tar.gz file.  However, after running R CMD INSTALL -build, the file and 
>>the folder disappeared in both the .zip file and the installed package.  
>>(R CMD CHECK, of course, failed too before that, as "myXML" can't be 
>>installed.)  Could anybody tell me what's the tricks to keep those folders 
>>in my installation?  I'm using R-2.5.1 under WinXP.
>>
>>Thank you very much!
>
>
>
>If you want it to be in mypackage/myXML after installation, put it into 
>mypackage/inst/myXML in the source package, as the manual you cited 
>suggests.
>
>Uwe Ligges
>
>
>
>
>>....Tao
>>
>>_________________________________________________________________
>>Need a brain boost? Recharge with a stimulating game. Play now!
>>
>>
>>------------------------------------------------------------------------
>>
>>______________________________________________
>>R-help at stat.math.ethz.ch 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