pac_news: Get NEWS for a package

View source: R/news.R

pac_newsR Documentation

Get NEWS for a package

Description

Get NEWS for a package from CRAN or local

Usage

pac_news(
  pac,
  version = NULL,
  at = NULL,
  local = FALSE,
  lib.loc = .libPaths(),
  repos = "https://cran.rstudio.com/"
)

Arguments

pac

character a package name.

version

character version of a package. Default: NULL

at

Date from which to take the version. Default: NULL

local

logical if to use local repository (or newest remote packages). Default: FALSE

lib.loc

character vector of search paths with local packages. Default: .libPaths()

repos

character vector repositories URLs to use. Used only for the validation. Default ⁠https://cran.rstudio.com/⁠

Value

character with NEWS content.

Note

Results are cached for 30 minutes with memoise package.

Examples

## Not run: 
pacs::pac_news("dplyr", version = "0.8.0")
pacs::pac_news("dplyr", at = as.Date("2019-02-01"))

## End(Not run)

pacs documentation built on Sept. 28, 2024, 1:07 a.m.