reso_source: reso_source()

Description Usage Arguments Value Examples

View source: R/reso_source.R

Description

Execute the contents of a file or string as a reso expression. This just validates the file's contents with reso_validate() and then interprets the string as a plain R expression with eval(parse(text=file)).

Usage

1

Arguments

file

A file or a string, to be executed as a reso expression.

Value

The results of the evaluated reso expression.

Examples

1
2
3
4
reso_source("x(s(d(p()[0])))")
reso_source("x(s(d(p()[0])))(0,x(s(d(p()[0])))(!0,0[0]))")
filename <- system.file("extdata", "example.reso", package = "reso")
reso_source(filename)

18kimn/reso documentation built on Dec. 17, 2021, 5:28 a.m.