Description Usage Arguments Details Value Author(s) References See Also Examples
This widget allows users to explore R packages in the R library and try the example code.
1 2 3 4 5 6 7 8 9 10 11 | 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 |
|
path |
|
pkgName |
|
fileName |
|
exclude |
|
getFocus |
|
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.
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.
The widget returns invisiable()
Jianhua Zhang
Documentation on R packages
1 2 3 4 5 6 7 | 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()
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.