RStudio创建R程序包
来源:互联网 发布:jquery 获取数组元素 编辑:程序博客网 时间:2024/06/06 04:20
RStudio Server的安装及配置,请参考:多人在线协作R开发RStudio Server
RStudio已经为我们准备了一个有界面的环境,方便我们制作R包。
- 创建一个工程sayHello
- 编辑DESCRIPTION
- 创建sayHello.R的脚本
- 编辑sayHello.Rd的文档
1). 创建一个工程sayHello
2). 编辑rstudio/sayHello/DESCRIPTION
Package: sayHelloType: PackageTitle: R package demo for sayHellLazyLoad: yesAuthor: Dan ZhangMaintainer: Dan ZhangDescription: This package provides a package demoLicense: GPLVersion: 1.0Date: 2013-07-31Depends: R (>= 3.0.1)
3). 编辑rstudio/sayHello/R/sayHello.R的脚本
sayHello<-function(name){ print(paste("Hi",name))}
4). 编辑rstudio/sayHello/man/sayHello.Rd的文档
\name{sayHello}\alias{sayHello}\title{a sayHello function demo}\description{a sayHello function demo}\usage{sayHello(name)}\arguments{ \item{name}{a word}}\details{nothing}\value{no return}\references{nothing}\author{Dan Zhang}\note{nothing}\seealso{nothing}\examples{sayHello("world")}\keyword{ sayHello }
5). 执行build和reload
6). 执行check
在RStudio中可以更方便的进行R的开包,打包,检查等的过程。RStudio就是R的神器!
0 0
- RStudio创建R程序包
- Rstudio手动安装程序包
- R:RStudio和RStudio Server
- RStudio:R语言编辑器
- R语言 RStudio快捷键
- R语言 RStudio快捷键
- RStudio 中的 R Markdown
- R语言 RStudio快捷键
- Ubuntu 安装R/Rstudio
- Rstudio 中创建一个R包,并且把包push到github
- Ubuntu12.04 安装 R RStudio
- Install R & RStudio in Ubuntu
- RStudio中制作R包
- Install R & RStudio in Ubuntu
- R语言 RStudio快捷键总结
- linux安装R和Rstudio
- R语言学习:RStudio安装
- R下安装配置RStudio
- ubuntu中安装nginx并配置SSL
- 悬浮控件之Tablayout
- RGBDSLAM 运行出错:terminate called after throwing an instance of 'pcl::IOException'
- 20170217. OpenGL3 (绘制几何图形)
- PHP 生成短网址
- RStudio创建R程序包
- RTMP直播应用与延时分析
- LeetCode 31. Next Permutation
- BigDecimal 的那些坑事儿
- SmartRoute之远程接口调用和负载
- 学习资料
- 【Linux】信号量
- Struts 从项目中下载文件
- 用Java访问带有Kerberos认证的HBase