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

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

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

                                        Read a Windows Registy Hive
                                         阅读Windows的注册表全部蜂房

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

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

Read values of keys in the Windows Registry, and optionally whole hives.
在Windows注册表中的键,可选整个蜂巢的读值。


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


readRegistry(key, hive = c("HLM", "HCR", "HCU", "HU", "HCC", "HPD"),
             maxdepth = 1, view = c("default", "32-bit", "64-bit"))



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

参数:key
character string, the path to the key in the Windows Registry.
字符串,在Windows注册表中的关键路径。


参数:hive
The "hive" containing the key.  The abbreviations are for HKEY_LOCAL_MACHINE, HKEY_CLASSES_ROOT. HKEY_CURRENT_USER, HKEY_USERS, HKEY_CURRENT_CONFIG and HKEY_PERFORMANCE_DATA
“蜂巢”包含的关键。缩写HKEY_LOCAL_MACHINE,HKEY_CLASSES_ROOT。 HKEY_CURRENT_USER,HKEY_USERS,HKEY_CURRENT_CONFIG和HKEY_PERFORMANCE_DATA


参数:maxdepth
How far to recurse into the subkeys of the key.  By default only the values of the key and the names of subkeys are returned.
远的关键子项递归。默认情况下只值返回键和子项的名称。


参数:view
On 64-bit Windows, the view of the Registry to be used: see "Details".
在64位Windows中,要使用注册表:见“详细资料”。


Details

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

Registry access is done using the security settings of the current R session: this means that some Registry keys may not be accessible even if they exist.  This may result in NULL values in the object returned, and, possibly, empty element names.
使用目前的R会话的安全设置注册表访问:这意味着,可能无法访问某些注册表项,即使存在。这可能会导致NULL对象中的值返回,并可能为空的元素名称。

On 64-bit Windows, this will by default read the 32-bit view of the Registry when run from 32-bit R, and the 64-bit view when run from 64-bit R: see http://msdn.microsoft.com/en-us/library/aa384232(VS.85).aspx.
64位Windows上,这将读取默认情况下,32位注册表视图时,从32位的R和64位运行时,运行64位R:看到http://msdn.microsoft。 com/en-us/library/aa384232(VS.90)的。aspx。


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

A named list of values and subkeys (which may themselves be named lists).  The default value (if any) precedes named values which precede subkeys, and both the latter sets are sorted alphabetically.
一个命名值和子项(这本身可能被命名为名单)名单。默认值(如果有的话)之前的命名前面子项的值,后者集按字母顺序排列。


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


## only in HLM if set in an admin-mode install.[#只有在高级别会议在管理员模式安装的一套。]
readRegistry("SOFTWARE\\R-core", maxdepth = 3)

gmt <- file.path("SOFTWARE", "Microsoft", "Windows NT",
                 "CurrentVersion", "Time Zones",
                 "GMT Standard Time", fsep="\\")
readRegistry(gmt, "HLM")

## on a 64-bit R need this to find 32-bit JAGS[#需要一个64位的R找到32位JAGS的]
readRegistry("SOFTWARE\\JAGS-1.0.3", maxdepth = 3, view="32")

## See if there is a 64-bit user install[#查看是否有64位用户安装]
readRegistry("SOFTWARE\\R-core\\R64", "HCU", maxdepth = 2)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-3 04:50 , Processed in 0.024201 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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