Re: [Rd] example package for devel newcomers

From: Daniel Fuka <>
Date: Mon, 01 Aug 2011 09:46:16 -0400

Hi Alexandre,

Is there a preferred language you would like to use in your package development? I randomly downloaded packages until I found some that helped me along my way, and might be able to help you pick one. If you are just looking at building a package of R functions and data you have developed, possibly the following example will get you started till you feel comfortable with the "Writing R Extensions" documentation (

# Start R
mydata<-data.frame(a=c(1,3,5),b=c(3,6,8)) mystat<-function(x,y){x*y}
package.skeleton(list=objects(),name="mypackage") list.files()
system("R CMD build mypackage")
system("R CMD check mypackage_1.0.tar.gz") # You will see an error here which directs you to look at the .Rcheck directory...
edit(file="mypackage.Rcheck/00install.out") # indicates you need to fill in the title fields of the man pages need to be filled in.

This should give you a start and get you using the Writing R Extensions docs. If you need more help, feel free to contact me outside of the list. Don't worry, the first one might be confusing, but after the first, they become fun.


On Sun, Jul 31, 2011 at 5:45 PM, Alexandre Aguiar <> wrote:
> Hi,
> I'd like to know whether there is a package (or more, of course) regarded
> as a good example that could be used also as an instructional tool for
> newcomers to R extensions development.
> Thanks.
> --
> Alexandre
> --
> Alexandre Santos Aguiar, MD, SCT
> ______________________________________________
> mailing list
> mailing list Received on Tue 02 Aug 2011 - 08:44:00 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

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 Tue 02 Aug 2011 - 12:10:14 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive