R/checkRversion.R

Defines functions checkVersionForSentiment

Documented in checkVersionForSentiment

#' Check r Version
#'
#' This function checking using current R version
#'
#' @return boolean
#' @export
#' @examples
#' checkVersionForSentiment()

checkVersionForSentiment <- function() {
  currentVersion <- R.version
  if ((currentVersion$major < 4 && currentVersion$major != 4) == TRUE) {
    message("Required R version 4.0.5 or above")
    message("Please update your R environment")
    return(NULL)
  }else{
    return(TRUE)
  }
}

Try the tsentiment package in your browser

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

tsentiment documentation built on Nov. 3, 2022, 1:06 a.m.