Learn R Programming

crunch (version 1.30.4)

hasFunction: 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)

Value

Logical

Arguments

fun

a string, name of the function to search for

pkg

a string, the package to search for the function in