Learn R Programming

mrgsolve (version 0.9.0)

scrape_opts: Scrape options from a code block

Description

Scrape options from a code block

Usage

scrape_opts(x, envir = list(), def = list(), all = TRUE,
  marker = "=", narrow = TRUE)

Arguments

x

data

envir

environment from $ENV

def

default values

all

return all options, even those that are not in def

marker

assignment operator; used to locate lines with options

narrow

logical; if TRUE, only get options on lines starting with >>

Value

list with elements x (the data without options) and named options as specified in the block.