hasFunction: Check if a package has a function installed

View source: R/misc.R

hasFunctionR Documentation

Check if a package has a function installed

Description

This is useful for handling if the user has the correct version of a suggested package installed.

Usage

hasFunction(fun, pkg)

Arguments

fun

a string, name of the function to search for

pkg

a string, the package to search for the function in

Value

Logical


crunch documentation built on Aug. 31, 2023, 1:07 a.m.