lengfeng0210的个人博客分享 http://blog.sciencenet.cn/u/lengfeng0210

博文

linux服务器上运行R程序文件

已有 12289 次阅读 2015-6-25 15:11 |系统分类:科研笔记| Linux, normal, style, 程序, 服务器

R --no-save <mergefiles.r

 
nohup R [options] [< infile] [> outfile]
nohup 后台运行程序
options:
--version 查看R版本;
--slave 只打印R脚本的输出,而不显示脚本具体执行情况; 
--vanilla--no-save, --no-restore, --no-site-file, --no-init-file  --no-environ的综合;
--args 后面是需要传递的参数。
注意:options必须选择--save,--no-save, --vanilla三个中的一个。
比如编辑一个mergefiles.r文件如下:
R --slave --vanilla <mergefiles.r


https://blog.sciencenet.cn/blog-690775-900520.html


收藏 IP: 221.0.193.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

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

GMT+8, 2024-9-5 02:22

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部