如何在R中开发包? [英] How to develop a package in R?
本文介绍了如何在R中开发包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经使用S4类在R
中编写了一些函数.
I have written some functions in R
using S4 classes.
现在我想从这些功能中构建一个R
包.
Now I want to build an R
package out of these functions.
我应该如何进行?因为我已经使用过S4类,所以我应该做些其他事情吗?
How should I proceed? Is there anything that I should do differently because I have used S4 classes?
推荐答案
咨询以下参考资料:
- 第1章,创建R包编写R扩展手册中的a>.这是规范的来源.这是最终的参考点,但不一定是最佳的起点.
- 简短演示概述了软件包开发和使用 devtools 开发包
- Hadley的 devtools Wiki ,尤其是演示. Hadley Wickham的
- R包.
- 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.
这篇关于如何在R中开发包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文