Dear Rita, Do you want a package just for yourself, or something useful for others, with docs, etc? I think the rest of the answers in this thread will help you create a "full fledged" package. See also the detailed explanation in "Writing R extensions".
If you just want something quick and dirty that allows you to use a bunch of functions without using "source" (and thus cluttering your global workspace), is easy to move around, etc, you just need a directory structure such as: SignS2/ SignS2/R/ SignS2/R/SignS2.R SignS2/DESCRIPTION SignS2/Changes (Change SignS2 for the name of your package). This has no documentation whatsoever. You can get rid of the "changes" file, but I put it there to keep track of changes. Run R CMD check against the directory (of coruse, you'll get warnings about missing documentation), and then R CMD build. Best, R. On Thursday 01 June 2006 13:23, michael watson (IAH-C) wrote: > ?package.skeleton > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gabor Grothendieck > Sent: 01 June 2006 12:20 > To: Rita Sousa > Cc: r-help@stat.math.ethz.ch > Subject: Re: [R] FW: How to create a new package? > > The minimum is to create a DESCRIPTION file, plus R and man directories > containing R code and .Rd files respectively. It might help to run Rcmd > CHECK mypkg before installation and fix any problems it finds. > > Googling for creating R package will locate some tutorials. > > On 6/1/06, Rita Sousa <[EMAIL PROTECTED]> wrote: > > Hi, > > > > > > > > I'm a group of functions and I would like to create a package for load in > > R. I have created a directory named INE and a directory below that named > > R, for the files of R functions. A have created the files DESCRIPTION and > > INDEX in the INE directory. The installation from local zip files, in the > > R 2.3.0, results but to load the package I get an error like: > > > > > > > > 'INE' is not a valid package -- installed < 2.0.0? > > > > > > > > I think that is necessary create a Meta directory with package.rds > > file, but I don't know make it! I have read the manual 'Writing R > > Extensions - 1. Creating R packages' but I don't understand the > > procedure... > > > > Can I create it automatically? > > > > > > > > Could you help me with this? > > > > > > > > Thanks, > > > > --------------------------------------------------- > > Rita Sousa > > DME - ME: Departamento de Metodologia Estatística - Métodos > > Estatísticos INE - DRP: Instituto Nacional de Estatística - Delegação > > Regional do Porto > > Tel.: 22 6072016 (Extensão: 4116) > > --------------------------------------------------- > > > > > > > > > > [[alternative HTML version deleted]] > > > > > > > > ______________________________________________ > > R-help@stat.math.ethz.ch mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide! > > http://www.R-project.org/posting-guide.html > > ______________________________________________ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > ______________________________________________ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html -- Ramón Díaz-Uriarte Bioinformatics Centro Nacional de Investigaciones Oncológicas (CNIO) (Spanish National Cancer Center) Melchor Fernández Almagro, 3 28029 Madrid (Spain) Fax: +-34-91-224-6972 Phone: +-34-91-224-6900 http://ligarto.org/rdiaz PGP KeyID: 0xE89B3462 (http://ligarto.org/rdiaz/0xE89B3462.asc) **NOTA DE CONFIDENCIALIDAD** Este correo electrónico, y en s...{{dropped}} ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html