remoteEval(rreval)
remoteEval()所属R语言包:rreval
Evaluate an expression on a remote system.
在远程系统上计算表达式的值。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
remoteEval() evaluates an expression in the .GlobalEnv environment of a remote R session and returns the result. See re() for a more convenient version of this function.
remoteEval()计算的远程R会话中的环境。GlobalEnv的表达,返回结果。更方便的版本此功能,请参阅RE()。
用法----------Usage----------
remoteEval(expr, maxBytesReturnable = 2^18,
hostName = NULL, userName = NULL)
参数----------Arguments----------
参数:expr
expression() or quote()
表达式()或引号()
参数:maxBytesReturnable
maximum size (in bytes) of an object that will returned to the client after the expression is evaluated. If the returned object exceeds this value, NULL is returned. maxBytesReturnable must be in [0,Inf].
最大大小(以字节为单位)的一个对象,将返回到客户端后的表达进行评估。如果返回的对象超过此值,则返回NULL。 maxBytesReturnable必须是在[0,Inf文件]。
参数:hostName
the name of the host where the rre server is running; usually NULL (the default). If this param (or userName) is NULL, the function will attempt to retrieve a connection from the connection manager environment. This param needs to be supplied only if you have connected to more than one rreval server in the current R session.
RRE服务器运行的主机的名称,通常NULL(默认值)。如果这个参数(或用户名)为NULL,则函数将尝试获取一个连接的连接管理器环境中。如果您已连接到一个以上的服务器在目前的R会话rreval这个参数需要提供。
参数:userName
the name of user on remote host that is running rreServer; usually NULL (the default). If this param (or hostName) is NULL, the function will attempt to retrieve a connection from the connection manager environment. This param needs to be supplied only if you have connected to more than one rreval server in the current R session.
用户在远程主机上运行rreServer的名称,通常NULL(默认值)。如果这个参数(或主机名)是NULL,该函数将试图获取一个连接的连接管理器环境中。如果您已连接到一个以上的服务器在目前的R会话rreval这个参数需要提供。
值----------Value----------
the result of the evaluation or NULL if the size of the result object exceeds maxBytesReturnable.
结果的评估或NULL如果结果对象的大小超过maxBytesReturnable。
注意----------Note----------
remoteEval() returns a result even if the expression includes an assignment. E.g. remoteEval(quote(a <- 2+2)) returns 4 AND creates a variable 'a' in the remote session with value 4. Note that returning large objects can be quite time consuming. By default, objects whose serialized size exceeds maxBytesReturnable are not returned - NULL is returned instead. To retrieve large objects, use scpDownload(). See the note in uploadObject() or upo().
remoteEval()返回一个结果,即使表达的分配。例如remoteEval(报价(< - 2 +2))返回,并创建一个变量a在远程会话中值4。请注意,返回大对象可以是相当费时。默认情况下,对象的序列化的大小超过maxBytesReturnable不会返回 - NULL返回。要检索大对象中,使用scpDownload()。在uploadObject见附注()或UPO()。
(作者)----------Author(s)----------
Barnet Wagman
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|