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

R语言 DynDoc包 getPkgVigList()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 16:50:54 | 显示全部楼层 |阅读模式
getPkgVigList(DynDoc)
getPkgVigList()所属R语言包:DynDoc

                                        A function to retrieve a listing of package vignettes
                                         一个函数来检索一个包护身符上市

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

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

Functionality to retrive vignette metadata, on a per-vignette or a per-package level.
功能,以检索暗角元数据,对每一个暗角或每包级别。


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


getPkgVigList(pkg, vigDescFun=baseVigDesc, vigPath = "/doc/",
vigExt="\\.(Rnw|Snw|rnw|snw|Rtex)$", pkgVers = TRUE)

getVigInfo(vig,pkg=NULL, vigDescFun=baseVigDesc, pkgVers=TRUE)



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

参数:pkg
Path to a package directory
包目录的路径


参数:vig
Filename of a vignette
一个小品的文件名


参数:vigDescFun
Function to provide output string for display
功能,提供显示输出字符串


参数:vigPath
Path to directory that contains vignettes in the package
路径目录,其中包含在包的护身符


参数:vigExt
Regular expression pattern to match vignette file extensions
正则表达式模式匹配的小插曲的文件扩展名


参数:pkgVers
Record the package version with the other vignette metadata
与其他小插曲元数据记录软件包的版本


Details

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

getPkgVigList: This function will look at all vignette files in the directory <pkg>/<vigPath>.  It will then extract any header information (using getVigInfo), and return a list of this information.
getPkgVigList:此功能将在所有的小插曲文件目录<pkg>/<vigPath>。然后,它会提取任何头信息(使用getVigInfo),并返回此信息的列表。

getVigInfo:  This function will retrieve the metadata from a particular vignette file.  Any line starting with '%\Vignette' is taken to be metadata.  Common values include VignetteIndexEntry (required), VignetteKeywords, VignetteDepends, etc.  A named list of lists is returned to the user, where the names correspond to the particular metadata variable.
getVigInfo:此功能将检索从一个特定的小插曲文件的元数据。 %\暗角开始的任何行采取的是元数据。共同的价值观,包括VignetteIndexEntry(),VignetteKeywords,VignetteDepends等命名的名单列表返回给用户,名称对应的特定元数据变量。

Both functions take a parameter baseVigDesc, which is a function to provide the output string to correspond with a vignette summary.  This function is directly called by getVigInfo.  It takes one parameter, which is a vigInfo list from getVigInfo.
这两个函数参数baseVigDesc,这是一个功能提供输出字符串对应一个插曲摘要。 getVigInfo直接调用此函数。它需要一个参数,这是一个从getVigInfovigInfo名单。


作者(S)----------Author(s)----------


Jeff Gentry



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

vignette
vignette


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


## Not run: [#无法运行:]
   ## We need a vignette for this to work[#我们需要为这个小插曲工作]
   dynPath <- system.file(package="DynDoc")
   vigList <- getPkgVigList(dynPath)
   vigList

## End(Not run)[#结束(不运行)]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-11 16:33 , Processed in 0.025178 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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