设为首页收藏本站获取积分奖励

R语言中文网

 找回密码
 立即注册
查看: 1877|回复: 0

R语言R的完成生成器.DollarNames()函数-中英文对照帮助文档

[复制链接]
发表于 2020-8-21 08:19:51 | 显示全部楼层 |阅读模式
        R语言R的完成生成器.DollarNames()函数-中英文对照帮助文档

                                         By MicroRbt Martinez PhD

R语言函数名:.DollarNames()
R语言函数功能:R的完成生成器
来自资源库:基础库(R语言自带)
.DollarNames()函数所属R语言包:所在R包具体名称、包功能的中英文双语描述见正文后面'--所在R语言包信息--'部分。

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

This page documents a mechanism to generate relevant completions from a partially completed command line. It is not intended to be useful by itself, but rather in conjunction with other mechanisms that use it as a backend. The functions listed in the usage section provide a simple control and query mechanism. The actual interface consists of a few unexported functions described further down.
此页面记录了一种从部分完成的命令行生成相关完成的机制。它本身并不是要有用的,而是要与将其用作后端的其他机制结合使用。用法部分中列出的功能提供了一种简单的控制和查询机制。实际的界面由一些未导出的功能组成,下面将进行描述。


使用方法-----Usage-----

rc.settings(ops, ns, args, dots, func, ipck, S3, data, help,
argdb, fuzzy, quotes, files)
rc.status()
rc.getOption(name)
rc.options(...)
.DollarNames(x, pattern)
## Default S3 methodefault S3 method:
默认的S3方法:

.DollarNames(x, pattern = "")
## S3 method for class 'list' S3 method for class 'list'
.DollarNames(x, pattern = "")
## S3 method for class 'environment' S3 method for class 'environment'
.DollarNames(x, pattern = "")

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

参数ops, ns, args, dots, func, ipck, S3, data, help, argdb, fuzzy, quotes, files介绍: logical, turning some optional completion features on and off.
逻辑上,打开和关闭一些可选的完成功能。


Activates completion after the $ and @ operators.
在$c和@运算符之后激活完成。


Controls namespace related completions.
控制名称空间相关的完成。


Enables completion of function arguments.
启用函数参数的完成。


If disabled, drops ... from list of function arguments. Relevant only if args is enabled.
如果禁用,则从函数参数列表中删除...。仅在启用args时相关。


Enables detection of functions. If enabled, a customizable extension ("(" by default) is appended to function names. The process of determining whether a potential completion is a function requires evaluation, including for lazy loaded symbols. This is undesirable for large objects, because of potentially wasteful use of memory in addition to the time overhead associated with loading. For this reason, this feature is disabled by default.
启用功能检测。如果启用,则将自定义扩展名(默认为"(")附加到函数名称。确定潜在完成是否为函数的过程需要评估,包括对延迟加载的符号的评估。对于大型对象,这是不希望的,因为除了与加载相关的时间开销外,还可能浪费内存。因此,默认情况下禁用此功能。


When args = TRUE, activates completion on arguments of all S3 methods (otherwise just the generic, which usually has very few arguments).
当args = TRUE时,激活所有S3方法的参数的完成(否则仅激活通用的,通常具有很少的参数)。


Enables completion of installed package names inside library and require.
启用library和require内已安装软件包名称的完成。


Enables completion of data sets (including those already visible) inside data.
启用data内的数据集(包括已经可见的数据集)的完成。


Enables completion of help requests starting with a question mark, by looking inside help index files.
通过查看帮助索引文件,可以完成以问号开头的帮助请求。


When args = TRUE, completion is attempted on function arguments. Generally, the list of valid arguments is determined by dynamic calls to args. While this gives results that are technically correct, the use of the ... argument often hides some useful arguments. To give more flexibility in this regard, an optional table of valid arguments names for specific functions is retained internally. Setting argdb = TRUE enables preferential lookup in this internal data base for functions with an entry in it. Of course, this is useful only when the data base contains information about the function of interest. Some functions are already included, and more can be added by the user through the unexported function .addFunctionInfo (see below).
当args = TRUE时,将尝试完成函数参数。通常,有效参数列表由对args的动态调用确定。尽管这会提供技术上正确的结果,但使用...参数通常会隐藏一些有用的参数。为了在这方面提供更大的灵活性,内部保留了特定功能的有效参数名称的可选表。设置argdb = TRUE可以在此内部数据库中为其中具有条目的功能进行优先查找。当然,这仅在数据库包含有关感兴趣功能的信息时才有用。一些功能已经包括在内,用户可以通过未导出的功能.addFunctionInfo添加更多功能(请参见下文)。


Enables fuzzy matching, where close but non-exact matches (e.g., with different case) are considered if no exact matches are found. This feature is experimental and the details can change.
启用模糊匹配,如果找不到精确匹配,则在其中考虑接近但不完全匹配(例如,大小写不同)。此功能是实验性的,详细信息可能会更改。


Enables completion in R code when inside quotes. This normally leads to filename completion, but can be otherwise depending on context (for example, when the open quote is preceded by ?), help completion is invoked. Setting this to FALSE relegates completion to the underlying completion front-end, which may do its own processing (for example, readline on Unix-alikes will do filename completion).
在引号内时启用R代码中的完成功能。通常,这会导致文件名完成,但是可以取决于上下文(例如,在?前面加上引号)时,将调用帮助完成。将此设置为FALSE可以将完成操作委派给基础完成操作前端,该前端可以进行自己的处理(例如,类似Unix的readline可以完成文件名)。


Deprecated. Use quotes instead.
不推荐使用。请改用quotes。



All settings are turned on by default except ipck, func, and fuzzy. Turn more off if your CPU cycles are valuable; you will still retain basic completion on names of objects in the search list. See below for additional details.
默认情况下,所有设置均处于打开状态,但ipck,func和fuzzy除外。如果您的CPU周期有价值,请关闭更多电源。您仍将保留搜索列表中对象名称的基本完成。有关其他详细信息,请参见下文。

参数name, ...介绍: user-settable options. Currently valid names are
用户可设置的选项。当前有效的名称是


default "("
默认"("


default " = "
默认" = "


default "::"
默认"::"



Usage is similar to that of options.
用法与options相似。

参数x介绍: An R object for which valid names after "$" are computed and returned.
一个R对象,为其计算并返回"$"之后的有效名称。

参数pattern介绍: A regular expression. Only matching names are returned.
正则表达式。仅返回匹配的名称。


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

There are several types of completion, some of w
-----未完,待续-----,↓↓↓展开剩余72%↓↓↓
购买主题 前行需要您的支持,请赞助作者 【15 金钱】 就能浏览全部100%内容啦!(本贴一次赞助、永久可读)
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|Archiver|R语言中文网    

GMT+8, 2024-4-28 15:05 , Processed in 0.027823 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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