Description Usage Arguments Value See Also Examples
Retrieve metadata for one, several, or all packages from the crandb CRAN metadata service.
1 2 |
package_name |
character vector of package names or |
version |
either "all" or "latest", indicating whether to return
metadata on all versions of a package or just the most recent; defaults to
"latest" when user supplies non- |
archived |
logical indicator requesting or suppressing the inclusion of
metadata for archived packages; only relevant when |
verbose |
Whether package names should be displayed as they are downloaded; ignored when downloading a single packages or all packages at once |
A named list containing the metadata associated with a single package
or a named list with such a component for each requested package. This list
contains the contents from the
CRAN API, with one field added:
retrieved
, a POSIXct
object with the
time that the data was retrieved.
get_package_source
and
remove_package_source
for the content of a package, and
get_package_names
to retrieve a listing of the names of
packages on CRAN.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
## get all versions of all CRAN packages, even archived ones
everything <- get_package_metadata()
str(everything, max.level = 1, list.len = 5)
## filter out the archived packages
not_archived <- get_package_metadata(archived = FALSE)
str(not_archived, max.level = 1, list.len = 5)
## get metadata for latest version of a specific package
get_package_metadata("dplyr")
## get metadata for all versions of a specific package
get_package_metadata("dplyr", version = "all")
## get metadata for latest version of selected packages
just_a_few <- get_package_metadata(c("dplyr", "broom", "lattice", "car"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.