R/getRevHistory.R

Defines functions getRevHistory

Documented in getRevHistory

#'Get Revticulate History
#'
#'Return the history of RevBayes code submitted with doRev() and similar functions
#'
#'@import comprehenr
#'
#'@return lines - character. A vector of the line-by-line Revticulate history
#'
#'@examples
#' \dontrun{
#' getRevHistory()
#'
#' cat(getRevHistory(), sep="\n")
#' }
#'
#'@export
#'
getRevHistory <- function(){

  lines <- readLines(Sys.getenv("revHistory"), warn = FALSE)

  return(lines)
}

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.