How to develop a package in R?

本小妞迷上赌 提交于 2019-11-26 23:48:58

问题


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:

  1. 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.
  2. A short presentation outlining the key ideas in package development and using the devtools package for development
  3. Hadley's devtools wiki, particular the Package basics section.
  4. The R help for ?package.skeleton and ?create in devtools.
  5. The presentation by Uwe Ligges at useR!2010 on package development.
  6. R Packages by Hadley Wickham.


来源:https://stackoverflow.com/questions/7297458/how-to-develop-a-package-in-r

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!