View source: R/callRevFromTerminal.R
callRevFromTerminal | R Documentation |
Accesses an RStudio terminal through the RStudio API and runs a .rev script.
callRevFromTerminal(revscript)
revscript |
character - .rev file to execute in RevBayes |
Many common RevBayes use-cases, such as generating mcmcs, take a long time to execute. Because of this fact, it is inefficient and inadvisable to run them in knitr documents or with RevBayes calls through repRev(). Instead, tutorial code or code that has been written interactively can be externally saved with saveRev(), and then executed in an RStudio terminal via callRevFromTerminal(). Output files can then be explored and visualized with the RevGadgets package.
termID Unique identifier of the terminal used to call RevBayes
## Not run: saveRev("archertutorial.rev", use_quit=TRUE) callRevFromTerminal("archertutorial.rev") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.