cliffgao的个人博客分享 http://blog.sciencenet.cn/u/cliffgao 兴趣:生物信息学、统计、概率

博文

running R script

已有 5340 次阅读 2011-6-23 21:55 |个人分类:R语言|系统分类:科研笔记

You can run R script in following ways:
cliffgao

(1)  open R console and type:
source("my.code.R“)

(2) in command line  or in bash:

add
"#!/usr/bin/env Rscript"
in the first line of  "my.code.R"
$ Rscript  my.code.R

or
chmod +x my.code.R
./my.code.R


(3)   in BATCH mode

$ R CMD BATCH  my.code.R

(4) See more in
http://manuals.bioinformatics.ucr.edu/home/programming-in-r




https://wap.sciencenet.cn/blog-468005-458547.html

上一篇:psipred installation
下一篇:2011-09-10 教师节快乐!
收藏 IP: 202.113.29.*| 热度|

0

发表评论 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-26 23:12

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部