Metadata about multiple CRAN packages
cran_packages(names)
Package names. May also contain versions, separated by a
@
character.
A data frame of package metadata, one package per row.
# Get metadata about one package
cran_packages("rhub")
#> # A data frame: 1 × 21
#> Package Title Version `Authors@R` Description License URL BugReports
#> * <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 rhub Connect to '… 1.1.2 "c(\nperso… "Run 'R CM… MIT + … http… https://g…
#> # ℹ 13 more variables: RoxygenNote <chr>, Encoding <chr>,
#> # VignetteBuilder <chr>, NeedsCompilation <chr>, Packaged <chr>,
#> # Author <chr>, Maintainer <chr>, Repository <chr>, `Date/Publication` <chr>,
#> # crandb_file_date <chr>, MD5sum <chr>, date <chr>, dependencies <list>
# Get metadata about two packages
cran_packages(c("rhub", "testthat"))
#> # A data frame: 2 × 25
#> Package Title Version `Authors@R` Description License URL BugReports
#> * <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 rhub Connect to … 1.1.2 "c(\nperso… "Run 'R CM… MIT + … http… https://g…
#> 2 testthat Unit Testin… 3.2.1 "c(\nperso… "Software … MIT + … http… https://g…
#> # ℹ 17 more variables: RoxygenNote <chr>, Encoding <chr>,
#> # VignetteBuilder <chr>, NeedsCompilation <chr>, Packaged <chr>,
#> # Author <chr>, Maintainer <chr>, Repository <chr>, `Date/Publication` <chr>,
#> # crandb_file_date <chr>, MD5sum <chr>, date <chr>, dependencies <list>,
#> # `Config/Needs/website` <chr>, `Config/testthat/edition` <chr>,
#> # `Config/testthat/parallel` <chr>, `Config/testthat/start-first` <chr>
# Get metadata about two packages at given versions
cran_packages(c("rhub@1.1.1", "testthat@2.2.1", "testthat@2.2.0"))
#> # A data frame: 3 × 23
#> Package Title Version `Authors@R` Description License LazyData URL
#> * <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 rhub Connect to 'R… 1.1.1 "c(\nperso… "Run 'R CM… MIT + … true http…
#> 2 testthat Unit Testing … 2.2.1 "c(\nperso… "Software … MIT + … NA http…
#> 3 testthat Unit Testing … 2.2.0 "c(\nperso… "Software … MIT + … NA http…
#> # ℹ 15 more variables: BugReports <chr>, RoxygenNote <chr>, Encoding <chr>,
#> # VignetteBuilder <chr>, NeedsCompilation <chr>, Packaged <chr>,
#> # Author <chr>, Maintainer <chr>, Repository <chr>, `Date/Publication` <chr>,
#> # crandb_file_date <chr>, MD5sum <chr>, date <chr>, dependencies <list>,
#> # Collate <chr>
# If a version does not exist nothing is returned
cran_packages("rhub@notaversion")
#> NULL