compile | R Documentation |
Compiles a piece of model-specific Stan code, as part of a PMXStanModel
object, into an executable.
compile(model, stanfilepath = NULL)
model |
a |
stanfilepath |
a string for user to specify the path of the Stan code. The default is NULL, and the
location of the Stan file to be compiled will be decided by |
This is a generic version of the method compile.stanmodel()
for the PMXStanModel
class.
The compilation step can also be performed simultaneous during the initialization process of a
PMXStanModel
object, by setting the argument compile = TRUE
.
No explicit return; a successful compilation will generate an executable code as part of the current
PMXStanModel
object.
PMXStanModel
for the method compile.stanmodel()
and the argument compile
.
m <- PMXStanModel(path = tempfile("pk_m1")) compile(m) m$compile.stanmodel() m <- PMXStanModel(path = tempfile("pk_m1"), compile = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.