找回密码
 注册
查看: 6336|回复: 0

R语言:commandArgs()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 21:17:37 | 显示全部楼层 |阅读模式
commandArgs(base)
commandArgs()所属R语言包:base

                                        Extract Command Line Arguments
                                         Extract命令行参数

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Provides access to a copy of the command line arguments supplied when this R session was invoked.
提供访问这个R会话调用时提供的命令行参数的副本。


用法----------Usage----------


commandArgs(trailingOnly = FALSE)



参数----------Arguments----------

参数:trailingOnly
logical.  Should only arguments after --args be returned?
逻辑。只应的参数后--args返回?


Details

详情----------Details----------

These arguments are captured before the standard R command line processing takes place.  This means that they are the unmodified values.  This is especially useful with the --args command-line flag to R, as all of the command line after that flag is skipped.
这些论点被捕获标准的R命令行处理之前发生。这意味着,他们是未经修改的值。 --args到R命令行标志,这是特别有用,因为所有的命令行标志后,被跳过。


值----------Value----------

A character vector containing the name of the executable and the user-supplied command line arguments.  The first element is the name of the executable by which R was invoked.  The exact form of this element is platform dependent: it may be the fully qualified name, or simply the last component (or basename) of the application, or for an embedded R it can be anything the programmer supplied.
字符向量的可执行文件和用户提供的命令行参数的名称。第一个元素是其中R被调用的可执行文件的名称。该元素的确切形式是依赖于平台的:它可能是完全合格的名称,或者干脆最后一个组件的应用程序(或基名),或一个嵌入式ŕ它可以是任何程序员提供。

If trailingOnly = TRUE, a character vector of those arguments (if any) supplied after --args.
如果trailingOnly = TRUE,提供了这些参数的特征向量(如有)后--args。


参见----------See Also----------

Startup
Startup


举例----------Examples----------


commandArgs()
## Spawn a copy of this application as it was invoked,[#生成一个该应用程序的副本,因为它被调用,]
## subject to shell quoting issues[#壳报价问题]
## system(paste(commandArgs(), collapse=" "))[#系统(糊(commandArgs(),倒塌=“”))]

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-2-3 02:03 , Processed in 0.019239 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表