[R] Writing R packages in an easier way?

S Ellison S.Ellison at lgc.co.uk
Fri Feb 11 13:38:14 CET 2011



>>> "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). 

S Ellison


*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}



More information about the R-help mailing list