分享

科学网—running R script

 王少斌 2011-12-01

running R script

已有 188 次阅读 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./home/programming-in-r

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多