RunRcode (RscriptFileName Rpath)

版本1.4(4.94 KB)由 Wei-Rong陈
这个函数调用R来运行R脚本(。r文件)

2.8 k下载

更新12月14日

查看许可协议

这个函数调用R来运行R脚本(。r文件), and returns 'runR.log' in the same folder with the input R script file.
此代码仅在Windows环境中工作。它可以通过修改“FindRpath”在Mac中工作。
RscriptFileName:要运行的R脚本的路径+文件名。
'Rpath'(可选):安装'R.exe'的路径。例如:Rpath = 'C:\Program Files\R\R-3.1.1\bin';
如果没有提供'Rpath',将执行'FindRpath'在Windows Program Files文件夹中自动查找R的路径。
例子:
>> Rpath = 'C:\Program Files\R\R-3.1.1\bin';
>> RscriptFileName = 'D:\test\lm . r ';
>> RunRcode(RscriptFileName, Rpath);
或者只是>> RunRcode(RscriptFileName);

引用作为

陈伟荣(2023)。RunRcode (RscriptFileName Rpath)(//www.ru-cchi.com/matlabcentral/fileexchange/50071-runrcode-rscriptfilename-rpath), MATLAB中央文件交换。检索

MATLAB版本兼容性
使用R2014a创建
与任何版本兼容
平台的兼容性
窗户 macOS Linux
标签添加标签
r

世界杯预选赛小组名单社区寻宝

在MATLAB Central中找到宝藏,并发现社区如何帮助您!世界杯预选赛小组名单

开始狩猎!
版本 发表 发布说明
1.4

支持并行处理(如parfor)(同时运行多个R代码)

1.3.0.0

修正了一个错误。

1.2.0.0

修正了一个错误。

1.1.0.0

更新

1.0.0.0

Baidu
map