R/getRevVars.R

Defines functions getRevVars

Documented in getRevVars

#'View RevBayes Variables
#'
#'Wrapper for RevBayes ls() function. Displays variables that have been defined in the working RevBayes session.
#'
#' @examples
#' \dontrun{
#'
#' getRevVars()
#' }
#'
#' @return No return - wrapper for RevBayes ls() function to show variables in rb environment
#'
#'
#'@export
#'
getRevVars <- function(){
    vars <- doRev("ls()")
    clearRev(1, silent = TRUE)
    cat(vars, sep = "\n")
}

Try the Revticulate package in your browser

Any scripts or data that you put into this service are public.

Revticulate documentation built on March 18, 2022, 6:47 p.m.