source_to_env: Loads sources function into an envir

Description Usage Arguments Value Examples

View source: R/test_students.R

Description

Sources an R file to get its functions and content into the environment.

Usage

1
source_to_env(file, env_name, envir_home = .GlobalEnv)

Arguments

file

the location of the .R file to source.

env_name

A name for the envir in which to store the data.

envir_home

the environment into which to assign the object (env_name). The default is .GlobalEnv.

Value

A named environment with the content of the .R file

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

talgalili/homework documentation built on July 10, 2019, 1:41 p.m.