env.console: Emulates an R console that evaluates expressions in the...

Description Usage Arguments Value

Description

Emulates an R console that evaluates expressions in the specified environement env. You return to the standard R console by pressing ESC

Usage

1
2
3
4
5
env.console(env = new.env(parent = parent.env), parent.env = parent.frame(),
  dots = NULL, prompt = ": ",
  startup.message = "Press ESC to return to standard R console",
  multi.line.parse.error = get.restore.point.options()$multi.line.parse.error,
  local.variables = NULL)

Arguments

env

The environment in which expressions shall be evaluated. If not specified then a new environment with the given parent.env is created.

parent.env

If env is not specified the parent environemnt in which the new environment shall be created

dots

a list that contains values for the ellipsies ... that will be used if you call other functions like fun(...) from within the console. You can access the values inside the console by typing list(...)

prompt

The prompt that shall be shown in the emulated console. Default = ": "

startup.message

The text that is shown when env.console is started

multi.line.parse.error

A substring used to identify an error by parse that is due to parsing the beginning of a multi-line expression. The substring can depend on the language of R error messages. The packages tries to find a correct substring automatically as default.

local.variables

additional variables that shall be locally available

Value

Returns nothing since the function must be stopped by pressing ESC.


restorepoint documentation built on May 2, 2019, 7:47 a.m.