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

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