如何在R中开发包? [英] How to develop a package in R?

查看:89
本文介绍了如何在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. 第1章,创建R包编写R扩展手册中的a>.这是规范的来源.这是最终的参考点,但不一定是最佳的起点.
  2. 简短演示概述了软件包开发和使用 devtools 开发包
  3. Hadley的 devtools Wiki ,尤其是演示.
  4. Hadley Wickham的
  5. R包.
  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.

这篇关于如何在R中开发包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆