[R] FW: How to create a new package?

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Jun 5 13:22:42 CEST 2006


R CMD INSTALL --build  produces a binary package in a zip file.
See the `R Installation and Administration manual'.

On Mon, 5 Jun 2006, Rita Sousa wrote:

> Hi,
> Thanks very much for your help. I have already created a test package with
> the package.skeleton() function and the procedures in the article "R Help
> Desk: Make R CMD work under Windows - R News 5 (2), 27-28".
> Now, my question is:
> How can I install this package in others PC's without install there the Perl
> and the remaining components?
> Thanks,
> ---------------------------------------------------
> Rita Sousa
> DME - ME: Departamento de Metodologia Estatística - Métodos Estatísticos
> INE - DRP: Instituto Nacional de Estatística - Delegação Regional do Porto
> Tel.: 22 6072016 (Extensão: 4116)
> ---------------------------------------------------
>
> -----Original Message-----
> From: Uwe Ligges [mailto:ligges at statistik.uni-dortmund.de]
> Sent: quinta-feira, 1 de Junho de 2006 12:43
> To: michael watson (IAH-C)
> Cc: Gabor Grothendieck; Rita Sousa; r-help at stat.math.ethz.ch
> Subject: Re: [R] FW: How to create a new package?
>
> michael watson (IAH-C) wrote:
>
>> ?package.skeleton
>
>
> Folks, please!
>
>
> Rita Sousa told you she already has a DESCRIPTION file.
>
> Obviously, Rita forgot to build and *install* the package using
> R CMD build
> and
> R CMD INSTALL
>
> (the Meta directory is creating during the installation procedure)
>
> Please note that using the Windows GUI, you can only install binary
> packages, but you have got a source package so far. Hence you need to
> install from the Windows command shell using R CMD INSTALL.
>
> Please see the R Installation and Administration manual on how to
> install packages. For some examples of what is mentioned in that manual
> (how to set stuff up in Windows), you might additionally want to take a
> look into the article "R Help Desk: Make `R CMD' Work under Windows - an
> Example" in R News 5 (2), 27-28.
>
> Best,
> Uwe Ligges
>
>
>
>> -----Original Message-----
>> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Gabor Grothendieck
>> Sent: 01 June 2006 12:20
>> To: Rita Sousa
>> Cc: r-help at stat.math.ethz.ch
>> Subject: Re: [R] FW: How to create a new package?
>>
>> The minimum is to create a DESCRIPTION file, plus R and man directories
> containing R code and .Rd files respectively.
>> It might help to run  Rcmd CHECK mypkg  before installation and fix any
> problems it finds.
>>
>> Googling for   creating R package   will locate some tutorials.
>>
>>
>> On 6/1/06, Rita Sousa <rita.sousa at ine.pt> wrote:
>>
>>> Hi,
>>>
>>>
>>>
>>> I'm a group of functions and I would like to create a package for load in
> R.
>>> I have created a directory named INE and a directory below that named
>>> R, for the files of R functions. A have created the files DESCRIPTION
>>> and INDEX in the INE directory. The installation from local zip files,
>>> in the R 2.3.0, results but to load the package I get an error like:
>>>
>>>
>>>
>>> 'INE' is not a valid package -- installed < 2.0.0?
>>>
>>>
>>>
>>> I think that is necessary create a Meta directory with package.rds
>>> file, but I don't know make it! I have read the manual 'Writing R
> Extensions - 1.
>>> Creating R packages' but I don't understand the procedure...
>>>
>>> Can I create it automatically?
>>>
>>>
>>>
>>> Could you help me with this?
>>>
>>>
>>>
>>> Thanks,
>>>
>>> ---------------------------------------------------
>>> Rita Sousa
>>> DME - ME: Departamento de Metodologia Estatística - Métodos
>>> Estatísticos INE - DRP: Instituto Nacional de Estatística - Delegação
>>> Regional do Porto
>>> Tel.: 22 6072016 (Extensão: 4116)
>>> ---------------------------------------------------
>>>
>>>
>>>
>>>
>>>       [[alternative HTML version deleted]]
>>>
>>>
>>>
>>> ______________________________________________
>>> 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
>>>
>>>
>>
>>
>> ______________________________________________
>> 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
>>
>> ______________________________________________
>> 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
>
> ______________________________________________
> 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
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


More information about the R-help mailing list