R/helpers.R

Defines functions cat0 int_greater_zero

cat0 <- function(...) {
  cat(..., "\n", sep = "")
}

int_greater_zero <- function(x) {
  if (!(x > 0 && length(x) == 1 && is.numeric(x) && floor(x) == x)) {
    return(FALSE)
  }
  return(TRUE)
}
nproellochs/textsampler documentation built on Nov. 4, 2019, 10:10 p.m.