Learn R Programming

rbi (version 1.0.0)

get_block: Get the contents of a block in a LibBi model

Description

Returns the contents of a block in a LibBi model as a character vector of lines.

Usage

# S3 method for bi_model
get_block(x, name, shell = FALSE, ...)

Value

a character vector of the lines in the block

Arguments

x

a bi_model object

name

name of the block

shell

if TRUE (default:FALSE), will return the shell (i.e., the definition of the block) as well as content; this is useful, e.g., to see options passed to a transition or ode block

...

ignored