source_to_new_env: Source a file into a new environment.

View source: R/utils.R

source_to_new_envR Documentation

Source a file into a new environment.

Description

Silently sources a file into a new environment, returning that environment.

Usage

source_to_new_env(file, encoding = getOption("encoding"))

Arguments

file

a file to source.

encoding

character encoding of that file.

Value

An environment containing the sourced variables.


sig documentation built on April 21, 2022, 5:07 p.m.