[R] Writing R packages in an easier way?
Uwe Ligges
ligges at statistik.tu-dortmund.de
Fri Feb 11 18:49:35 CET 2011
On 11.02.2011 13:38, S Ellison wrote:
>
>
>>>> "Dr. Michael Wolf"<m-wolf at muenster.de> 11/02/2011 07:52>>>
>> is there an easier way to write R packages for the own use - without
> RTools and TeX?
>
> Installing Rtools is not hard, and doesn't have to happen often; the
> hardest bit in Windows is making sure that the requisite executables are
> on the path, and that just involves adding the directory names to the
> path environment variable. If I understand you, the problem is the time
> spent hacking about in the .Rd help files. That can certainly be
> simplified - eliminated, in fact.
>
> Use package.skeleton() once you have a good starting set of functions
> and data in R. That creates all the necessary directories, creates
> skeleton (but valid) .Rd files, and exports your functions and data
> objects for you. You can then edit the code directly, use RCMD check to
> check the package (useful anyway) and use RCMD build to build it. (In
> fact if all you want is the zip, you can - or at least could - zip the
> package directory created by RCMD check).
Actually, just say
R CMD INSTALL --build package
which will generate the zip in a supported way.
Uwe Ligges
> S Ellison
>
>
> *******************************************************************
> This email and any attachments are confidential. Any use...{{dropped:8}}
>
> ______________________________________________
> 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.
More information about the R-help
mailing list