scope_run_print: Runs and prints from string, in parent environment

View source: R/utils-scope.R

scope_run_printR Documentation

Runs and prints from string, in parent environment

Description

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

Usage

scope_run_print(.code_string)

Arguments

.code_string

A string containing runnable R code.

Value

Nothing; side effects from print() only.


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