R/print.cube.R

#' Printing cube
#'
#' Prints cube in console
#'
#' @param x - cube object
#' @param ... - not used
#' @return plain text
#'
#' @examples
#' cube <- createCube()
#' print(cube)
#'
#' @export
#' @export
print.cube <- function(x, ...)
  {
  N <- x$size
  cat(paste0("Cube size ",N,"x",N,"x",N))

}

Try the rcube package in your browser

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

rcube documentation built on May 15, 2019, 5:09 p.m.