[R] FW: How to create a new package?
Uwe Ligges
ligges at statistik.uni-dortmund.de
Thu Jun 1 13:43:12 CEST 2006
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
More information about the R-help
mailing list