sget: Safely return object

View source: R/utils.R

sgetR Documentation

Safely return object

Description

Safely return object

Usage

sget(.obj, .class, env)

Arguments

object

name of variable

classes

type of object

Value

a list with elements obj, the object (if it exists, NULL otherwise), exists (TRUE if it does, FALSE if not), type (TRUE if object is of type 'class', otherwise FALSE), and message, a character vector describing any errors (or NULL on success)


dalejbarr/assessr documentation built on Jan. 25, 2024, 10:47 p.m.