Metadata about a CRAN package
cran_package(name, version = NULL)
Name of the package.
The package version to query. If NULL
, the latest
version if returned.
The package metadata, in a named list.
cran_package("pkgsearch")
#> $Package
#> [1] "pkgsearch"
#>
#> $Title
#> [1] "Search and Query CRAN R Packages"
#>
#> $Version
#> [1] "3.1.3"
#>
#> $`Authors@R`
#> [1] "c(\nperson(\"Gábor\", \"Csárdi\", , \"csardi.gabor@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"Maëlle\", \"Salmon\", role = \"aut\",\ncomment = c(ORCID = \"0000-0002-2815-0399\")),\nperson(\"R Consortium\", role = \"fnd\")\n)"
#>
#> $Description
#> [1] "Search CRAN metadata about packages by keyword, popularity,\nrecent activity, package name and more. Uses the 'R-hub' search\nserver, see <https://r-pkg.org> and the CRAN metadata database, that\ncontains information about CRAN packages. Note that this is _not_ a\nCRAN project."
#>
#> $License
#> [1] "MIT + file LICENSE"
#>
#> $URL
#> [1] "https://github.com/r-hub/pkgsearch,\nhttps://r-hub.github.io/pkgsearch/"
#>
#> $BugReports
#> [1] "https://github.com/r-hub/pkgsearch/issues"
#>
#> $Imports
#> $Imports$curl
#> [1] "*"
#>
#> $Imports$jsonlite
#> [1] "*"
#>
#>
#> $Suggests
#> $Suggests$covr
#> [1] "*"
#>
#> $Suggests$memoise
#> [1] "*"
#>
#> $Suggests$mockery
#> [1] "*"
#>
#> $Suggests$pillar
#> [1] "*"
#>
#> $Suggests$pingr
#> [1] ">= 2.0.0"
#>
#> $Suggests$rstudioapi
#> [1] "*"
#>
#> $Suggests$shiny
#> [1] "*"
#>
#> $Suggests$shinyjs
#> [1] "*"
#>
#> $Suggests$shinyWidgets
#> [1] "*"
#>
#> $Suggests$testthat
#> [1] ">= 3.0.0"
#>
#> $Suggests$whoami
#> [1] "*"
#>
#> $Suggests$withr
#> [1] "*"
#>
#>
#> $`Config/testthat/edition`
#> [1] "3"
#>
#> $Encoding
#> [1] "UTF-8"
#>
#> $RoxygenNote
#> [1] "7.2.0.9000"
#>
#> $NeedsCompilation
#> [1] "no"
#>
#> $Packaged
#> [1] "2023-12-10 13:34:02 UTC; gaborcsardi"
#>
#> $Author
#> [1] "Gábor Csárdi [aut, cre],\nMaëlle Salmon [aut] (<https://orcid.org/0000-0002-2815-0399>),\nR Consortium [fnd]"
#>
#> $Maintainer
#> [1] "Gábor Csárdi <csardi.gabor@gmail.com>"
#>
#> $Repository
#> [1] "CRAN"
#>
#> $`Date/Publication`
#> [1] "2023-12-10 14:00:03 UTC"
#>
#> $crandb_file_date
#> [1] "2023-12-10 15:15:22"
#>
#> $MD5sum
#> [1] "5506c33a6c44075c92b56d27eb68aabf"
#>
#> $date
#> [1] "2023-12-10T13:00:03+00:00"
#>
#> $releases
#> list()
#>
#> attr(,"class")
#> [1] "cran_package"