Title: | 'odin' 'JavaScript' support |
---|---|
Description: | Create 'JavaScript' differential equation models from an 'odin' model specification. |
Authors: | Rich FitzJohn |
Maintainer: | Rich FitzJohn <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.11 |
Built: | 2024-09-21 02:51:49 UTC |
Source: | https://github.com/mrc-ide/odin.js |
Generate a javascript odin model from a file, text string or expression.
odin_js(x, ..., options = NULL) odin_js_(x, ..., options = NULL)
odin_js(x, ..., options = NULL) odin_js_(x, ..., options = NULL)
x |
Either the name of a file to read, a text string (if length is greater than 1 elements will be joined with newlines) or an expression. |
... |
Arguments passed to |
options |
An optional |
Create a bundle of odin models
odin_js_bundle( filenames, dest = tempfile(), include = NULL, include_dopri = TRUE )
odin_js_bundle( filenames, dest = tempfile(), include = NULL, include_dopri = TRUE )
filenames |
Filenames with odin source code |
dest |
Destination file for the generated javascript |
include |
Optional vector of paths of filenames to include into the javascript bundle |
include_dopri |
Logical, indicating if the dopri solver should be included as well. |
Generate a web page and javascript for a built-in example
odin_js_example(filename, name, dest = tempfile())
odin_js_example(filename, name, dest = tempfile())
filename |
Filename of model to include |
name |
Name of the example (only |
dest |
Destination directory - multiple files will be created here, overwriting existing files without prompting. |