pkglist | R Documentation |
library
and require
calls in R and import
calls from Pythonpkglist
counts the number of library
/require
/import
calls for
R and Python commands within the files.
It checks the availability of a package/module via utils::available.packages()
(for R)
and via PyPI
(for Python).
If code=TRUE
is set, it returns R/Python code for installing packages/modules.
Otherwise, a table with the number of library
or import
calls is returned.
pkglist(files, code = TRUE, repos = getOption("repos"))
Rlibs(files, code = TRUE, repos = getOption("repos"))
modlist(files, code = TRUE, repos = getOption("repos"))
files |
character: file name(s) |
code |
logical: should names given back or code for init scrips? (default: |
repos |
character: the base URL(s) of the repositories to use (default: |
a table how frequently the packages are called or R Code to install them
if (interactive()) {
files <- list.files(pattern="*.(R|py)$", full.names=TRUE, recursive=TRUE)
pkglist(files)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.