load: Load encrypted R objects

View source: R/main.R

loadR Documentation

Load encrypted R objects

Description

This function allows you to load encrypted R objects. Loaded R objects are attached to the environment.

Usage

load(file, envir = parent.frame(), password = NULL)

Arguments

file

the path to the file.

envir

the environment to attach to.

password

the password to use, if NULL, the function asks for a password.

Details

Uses AES 256-bit encryption (in CBC mode) with a SHA-256 hashed password.

Note

Asking for a password relies on being in interactive() mode (RStudio, RGui). Outside interactive() mode (rmarkdown, knitr), the package "getPass" is required.

Examples

load("mydata.Rdata")


Gootjes/encryptr documentation built on Feb. 15, 2024, 12:14 p.m.