请教多进程中调用R中的一段英文,没看明白
时间:2011-06-21
来源:互联网
用了一个模块,叫statistics::R。现在要多进行中运行,模块有说明,是这样的,但是没有看太明白。
是要先写一个statistics-r.pl文件,再用statistics-r.pl start吗?
还是说只要程序里有 那段代码就行了。请高手解答一下。
EXECUTION FOR MULTIPLE PROCESS ^
The main pourpose of Statistics::R is to start a single R interpreter that hear multiple Perl process.
Note that to do that R and Perl need to be running with the same user/group level.
To start the Statistics::R bridge you can use the script statistics-r.pl:
复制代码
From your script you need to use the start_sharedR() option:
复制代码
Note that in the example above the method stopR() wasn't called, sine it will close the bridge.
是要先写一个statistics-r.pl文件,再用statistics-r.pl start吗?
还是说只要程序里有 那段代码就行了。请高手解答一下。
EXECUTION FOR MULTIPLE PROCESS ^
The main pourpose of Statistics::R is to start a single R interpreter that hear multiple Perl process.
Note that to do that R and Perl need to be running with the same user/group level.
To start the Statistics::R bridge you can use the script statistics-r.pl:
- $> statistics-r.pl start
- use Statistics::R;
-
- my $R = Statistics::R->new();
-
- $R->start_sharedR;
-
- $R->send('x = 123');
-
- exit;
作者: kingwmj 发布时间: 2011-06-21
那个文件一般安装到 site/bin 中了
作者: zhlong8 发布时间: 2011-06-21
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28