问题
I have written some functions in R
using S4 classes.
Now I want to build an R
package out of these functions.
How should I proceed? Is there anything that I should do differently because I have used S4 classes?
回答1:
Consult the following reference material:
- Chapter 1, Creating R packages, of the Writing R extensions manual. This is the canonical source. It's the ultimate reference point, but not necessarily the best starting point.
- A short presentation outlining the key ideas in package development and using the devtools package for development
- Hadley's devtools wiki, particular the Package basics section.
- The R help for
?package.skeleton
and?create
indevtools
. - The presentation by Uwe Ligges at
useR!2010
on package development. - R Packages by Hadley Wickham.
来源:https://stackoverflow.com/questions/7297458/how-to-develop-a-package-in-r