read_single_object_from_rda: Read a single R object from an RDA file.

View source: R/rdata_io.R

read_single_object_from_rdaR Documentation

Read a single R object from an RDA file.

Description

If run on an RDA file containing more than one object, throws an error.

Usage

read_single_object_from_rda(filename)

Arguments

filename

The file to read an R object from.

Value

The R object read from the file.

This function allows you to read an RData file as if it were an RDS file, as long as it satisfies the requirement of containing only one object.

See Also

readRDS(), load()


DarwinAwardWinner/rctutils documentation built on July 22, 2022, 5:19 a.m.