write_model | R Documentation |
Writes a bi model to a file given by filename
. The extension '.bi'
will be added if necessary.
## S3 method for class 'bi_model'
write_model(x, filename, update.name = TRUE, ...)
## S3 method for class 'libbi'
write_model(x, filename, ...)
x |
a |
filename |
name of the file to be written |
update.name |
whether to update the model name with the file name |
... |
ignored |
the return value of the writeLines
call.
bi_model
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.