[R] How to form a simple R package
Doran, Harold
HDoran at air.org
Wed Feb 6 14:13:07 CET 2008
Well, not exactly. package.skeleton() is very useful as a first step,
but it does *not* create a package entirely. It turns out that in
Windows, creating a package is very simple once you have downloaded all
programs needed (e.g., perl) and you have your path configured exaclty,
(exactly, exactly) as described in the document found at the link below.
After running package.skeleton, you must still run Rcmd build, Rcmd
check, and Rcmd install.
http://cran.r-project.org/doc/manuals/R-admin.html#The-Windows-toolset
> -----Original Message-----
> From: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] On Behalf Of Benilton Carvalho
> Sent: Wednesday, February 06, 2008 2:33 AM
> To: Giles.Crane at doh.state.nj.us
> Cc: r-help at r-project.org
> Subject: Re: [R] How to form a simple R package
>
> ?package.skeleton
>
> b
>
> On Feb 5, 2008, at 1:48 PM, Giles.Crane at doh.state.nj.us wrote:
>
> > Is there a function to form in one step (configure files
> and install)
> > a simple R package of consisting of one script file of R functions?
> >
> > For example in Windows:
> >
> > form.package(name="mypkg", rcodefile ="c:\misc\mypkg.r" )
> >
> > Thank you for any comments.
> > Giles
>
>
More information about the R-help
mailing list