Functions usable for R code run inside Rserve
R代码跑在里面,保有可用的功能
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The following functions can only be used inside Rserve, they cannot be used in stand-alone R. They interact with special features of Rserve. All commands below will succeed only if Rserve has been started with r-control enable configuration setting for security reasons.
下面的函数只能在内部使用,保有,他们不能被用来在独立R.它们与特殊功能,保有。下面所有的命令将成功的前提条件,保有r-control enable配置设置为安全起见已经开始。
self.ctrlEval issues a control command to the Rserve parent instance that evaluates the given expression in the server. The expression is only queued for evaluation which will happen asynchronously in the server (see RSserverEval for details). Note that the current session is unaffected by the command.
self.ctrlEval发出一个控制命令在服务器,用于评估给定的表达式的的,保有父实例。的表达进行评估排队,这会发生在服务器异步(见RSserverEval详情)。请注意,本届会议是不受命令。
self.ctrlSource issues a control command to the Rserve parent instance to source the given file in the server, see RSserverSource for details.
self.ctrlSource发出控制命令,保有父实例源给定的文件在服务器,请参阅RSserverSource的详细信息。
用法----------Usage----------
self.ctrlEval(expr)
self.ctrlSource(file)
参数----------Arguments----------
参数:expr
R expression to evaluate remotely
R的表达,以评估远程
参数:file
path to a file that will be sourced into the main instance
文件路径会被执行到的主要实例
值----------Value----------
Both functions return TRUE (invisibly).
这两个函数返回TRUE(不可见)。
(作者)----------Author(s)----------
Simon Urbanek
实例----------Examples----------
## Not run: [#不运行:]
self.ctrlEval("a <- rnorm(10)")