try_load: load file

View source: R/fut.r

try_loadR Documentation

load file

Description

load a file catching errors

Usage

try_load(x, env = parent.frame())

Arguments

x

character; file's name

env

object environment where objects are loaded; parent.frame by default

Value

character; objects' names or NULL

Author(s)

eddy castellón

Examples

## Not run: 
try_load("xx.rda")
try_load("xx.rda", env = new.env())

## End(Not run)

ecastellon/magfoo documentation built on Jan. 29, 2024, 4:40 p.m.