Skip to contents

Check whether a function name exists in any CRAN packages

Usage

fn_names_on_cran(fn_name, force_update = FALSE)

Arguments

fn_name

Character vector of one or more function names to check.

force_update

If 'TRUE', locally-cached data of all function names from all CRAN packages will be updated to latest version.

Value

A data.frame of three columns, "package", "version", and "fn_name", identifying any other packages matching specified function name(s). If no matches are found, the data.frame will have no rows.

Examples

fn_names_on_cran (c ("min", "max"))
#>       package version fn_name
#> 1    matlab2r   1.5.0     max
#> 2    matlab2r   1.5.0     min
#> 3 rapportools     1.2     max
#> 4 rapportools     1.2     min
#> 5      mosaic   1.9.2     max
#> 6      mosaic   1.9.2     min