initEnv: sets the enviroment

Description Usage Arguments Value Examples

View source: R/auxilary.R

Description

space-saver - meant to be used at the beginning of a function

Usage

1
initEnv(init = NULL, envir = parent.frame())

Arguments

init

list with names entries of alernate/other options

envir

where to return the options

Value

environment is set

Examples

1
2
3
4
5
6
7
## Not run: 
# > options(max.print=88888L)
# initEnv()
# > getOption("max.print")
# [1] 99999

## End(Not run)

AndreMikulec/tradeModel documentation built on May 23, 2019, 8 p.m.