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)
pkgPath
a character string for the path where R
packages are loactedpath
a character string for the path of a given filepkgName
a character string for the name
(including path) of an R package to be exploredfileName
a character string for the name
(including path) of a file of interestexclude
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)getFocus
a boolean indicating whether a widget
should grab the focuslist.files
will be selected and
the contents displayed if no package name is given. getPkgContents
gets the contents of a given R package
and getFileContents
gets the contents of a givan file.
getRPkgs
, hasDesc
, procRda
,
procHelp
, procPDF
, and
procHTML
are functions called by
pExplorer
to process different file or directory types.
eExplorer
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()
}
Run the code above in your browser using DataLab