loadFile: Attempt to load a binary RData file

loadFileR Documentation

Attempt to load a binary RData file

Description

The function attempts to load a binary file, returning TRUE if succeeded. Otherwise it returns FALSE.

Usage

loadFile(rDataFile, env = parent.frame())

Arguments

rDataFile

Character, RData file name

env

Environment, where should be the RData loaded into. By default it is loaded into the caller's environment.

Value

Logical, TRUE if the file was loaded successfully, FALSE otherwise.

Author(s)

Jitao David Zhang <jitao_david.zhang@roche.com>

See Also

iofile can be used to find file from input data directory.

Examples

rf <- tempfile()
myData <- c(3,4,5)
save(myData, file=rf)
env <- new.env()
stopifnot(loadFile(rf, env=env))


ribiosIO documentation built on Feb. 20, 2026, 5:09 p.m.