callRevFromTerminal {Revticulate} | R Documentation |
Execute a .rev file in RevBayes Through an RStudio Terminal
Description
Accesses an RStudio terminal through the RStudio API and runs a .rev script.
Usage
callRevFromTerminal(revscript)
Arguments
revscript |
character - .rev file to execute in RevBayes |
Details
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.
Value
termID Unique identifier of the terminal used to call RevBayes
Examples
## Not run:
saveRev("archertutorial.rev", use_quit=TRUE)
callRevFromTerminal("archertutorial.rev")
## End(Not run)
[Package Revticulate version 1.0.0 Index]