如何在 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 扩展 手册.这是规范的来源.这是最终的参考点,但不一定是最佳起点.
- 简短介绍概述了包开发和使用 devtools 开发包
- Hadley 的 devtools wiki,特别是 包基础部分.
devtools
中?package.skeleton
和?create
的 R 帮助.- Uwe Ligges 的演讲 在
user!2010
上的包装发展. - R 软件包,作者 Hadley Wickham.
- 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屋!
查看全文