scope_and_run: Runs code from string, in parent environment

scope_and_runR Documentation

Runs code from string, in parent environment

Description

Shortcut function to rescope a code string and then run (but not print). Looks for object assignments of the form foo <- and rescopes to foo <<-, then evaluates code string.

Usage

scope_and_run(.code_string)

Arguments

.code_string

A string containing runnable R code.

Value

Nothing; side effects in environment only.


kbodwin/flair documentation built on Feb. 6, 2023, 4:24 p.m.