Re: [R] How to form a simple R package

From: Doran, Harold <HDoran_at_air.org>
Date: Wed, 6 Feb 2008 08:13:07 -0500


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
>
>



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. Received on Wed 06 Feb 2008 - 13:19:47 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 06 Feb 2008 - 13:30:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive