R/square.R

#' Square a number
#' @param x [numeric]\cr
#'   Number to square.
#' @return Square of \code{x}.
#' @export
square = function(x) {
    assertNumber(x, na.ok = FALSE)
    x^2
}
mllg/travis-test documentation built on May 23, 2019, 3:02 a.m.