Learn R Programming

rbi (version 1.0.0)

write_model: Writes a bi model to a file.

Description

Writes a bi model to a file given by filename. The extension '.bi' will be added if necessary.

Usage

# S3 method for bi_model
write_model(x, filename, update.name = TRUE, ...)

# S3 method for libbi write_model(x, filename, ...)

Value

the return value of the writeLines call.

Arguments

x

a bi_model object, or a libbi object containing a model

filename

name of the file to be written

update.name

whether to update the model name with the file name

...

ignored

See Also

bi_model

Examples

Run this code
model_file_name <- system.file(package = "rbi", "PZ.bi")
PZ <- bi_model(filename = model_file_name)
new_file_name <- tempfile("PZ", fileext = ".bi")
write_model(PZ, new_file_name)

Run the code above in your browser using DataLab