Learn R Programming

fuj (version 0.2.1)

require_namespace: Require namespace

Description

Require namespace

Usage

require_namespace(package, ...)

Value

TRUE (invisibly) if found; otherwise errors

Arguments

package, ...

Package names

Examples

Run this code
isTRUE(require_namespace("base")) # returns invisibly
try(require_namespace("1package")) # (using a purposefully bad name)
require_namespace("base", "utils")
try(require_namespace("base>=3.5", "utils>4.0", "fuj==10.0"))

Run the code above in your browser using DataLab