Description Usage Arguments Examples
Which packages were installed from CRAN, GitHub, Bioconductor, etc.?
1 |
pkg |
a character string with the package name. |
lib.loc |
a character vector of directory names of R libraries,
or |
1 2 3 4 5 | pkgs <- as.data.frame(installed.packages(), stringsAsFactors = FALSE)
ids <- which(!(pkgs$Priority %in% c("base", "recommended")))
pkgs <- pkgs[ids, ]
pkgs <- pkgs$Package
pkgs[pkgSrc(pkgs) == "CRAN"]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.