pExplorer(tkWidgets)
pExplorer()所属R语言包:tkWidgets
A widget to explore R packages
一个Widget探索R包
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This widget allows users to explore R packages in the R library and try the example code.
这个小工具,允许用户探索R包R库和尝试的例子代码。
用法----------Usage----------
pExplorer(pkgName = "", pkgPath = "", exclude = getExclude(), getFocus =
TRUE)
getPkgContents(pkgName, exclude = getExclude())
getFileContents(path, fileName)
getExclude()
getRPkgs(pkgPath)
hasDesc(pkgPath)
procRda(fileName)
procHelp(fileName)
procPDF(fileName)
procHTML(fileName)
参数----------Arguments----------
参数:pkgPath
pkgPath a character string for the path where R packages are loacted
pkgPath,其中R包loacted路径字符串
参数:path
path a character string for the path of a given file
path为一个给定的文件路径字符串
参数:pkgName
pkgName a character string for the name (including path) of an R package to be explored
pkgNameR包(包括路径)为名称的字符串探索
参数:fileName
fileName a character string for the name (including path) of a file of interest
fileName一个利益的文件名(包括路径)的字符串
参数:exclude
exclude a vector of character strings containing the directory or file names that will not be available for explorering. Package names have to have a system file separator appanded to the end (e. g. "/" under Unix)
exclude字符的字符串包含目录或文件名,不会explorering向量。包名必须有一个系统的文件分隔appanded结束(如“/”Unix下)
参数:getFocus
getFocus a boolean indicating whether a widget should grab the focus
getFocus一个布尔值,指示部件是否应该抓住重点
Details
详情----------Details----------
With or without a package name, the widget will have all the installed R package names in a dropdown list for user to select. As the default, the first element from list.files will be selected and the contents displayed if no package name is given.
带或不带包的名称,部件将在下拉列表为用户安装R包名称来选择。默认情况下,第一个元素从list.files的将选择的内容显示,如果没有包名。
getPkgContents gets the contents of a given R package and getFileContents gets the contents of a givan file.
getPkgContents得到一个给定的R包的内容和getFileContents得到一个givan文件的内容。
getRPkgs, hasDesc, procRda, procHelp, procPDF, and procHTML are functions called by pExplorer to process different file or directory types.
getRPkgs,hasDesc,procRda,procHelp,procPDF,procHTML是pExplorer称为处理不同的文件或功能目录类型。
值----------Value----------
The widget returns invisiable()
该部件返回invisiable()
作者(S)----------Author(s)----------
Jianhua Zhang
参考文献----------References----------
<h3>See Also</h3>
举例----------Examples----------
require("tkWidgets") || stop("tkWidgets not available")
getPkgContents(.libPaths(), "tkWidgets")
getFileContents(file.path(.path.package("tkWidgets"), "help"),
list.files(file.path(.path.package("tkWidgets"), "help"))[1])
if(interactive()){
pExplorer()
}
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|