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")
}
Paleantology/RevR documentation built on March 22, 2022, 2:27 a.m.