fun_exists_at: Test if a function exists at a given package version

Description Usage Arguments Value Examples

Description

fun_exists_at reports whether a function exists (i.e. is exported) from a package at a specific previous version or date.

Usage

1
2
fun_exists_at(fun, version = version_at_date(package, date), package,
  date = NULL, quiet = TRUE, ...)

Arguments

fun

Function name as a character string. fun can be an S3 method; S4 methods aren't yet supported.

version

Version as a character string. If omitted, use the version available at date.

package

Package. Alternatively, specify the function name as e.g. "package::function".

date

Date, as a character string that can be read by as.Date() e.g. "2016-01-01".

quiet

Logical. Try to minimize output from package installation. (Some output comes from R CMD INSTALL and may be unavoidable.)

...

Arguments passed to versions::install.versions() or remotes::install_version(), and thence to install.packages(). Ncpus may be useful.

Value

TRUE or FALSE.

Examples

1
2
3
4
5
6
## Not run: 
fun_exists_at("clipr::dr_clipr", version = "0.3.1")
# or
fun_exists_at("dr_clipr", "clipr", "0.3.1")

## End(Not run)

hughjonesd/apicheck documentation built on Sept. 9, 2019, 12:55 p.m.