R/as.plantuml.R

Defines functions as.plantuml

Documented in as.plantuml

#' Convert an R object to a Class uml object
#'
#' Generic function to convert an R object to a \code{plantuml} Class object.
#' See details for the individual functions
#' @param x R object to be converted
#' @param ... other argunents passed on to generic functions
#'
#' @return object of class \code{plantuml} which can be plotted.
#' @rdname as.plantuml
#' @export
#'
#' @examples
#' \dontrun{
#' x <- list(
#'   a = 1:10,
#'   b = letters[1:4],
#'   c = data.frame(
#'     x = 1:10,
#'     y = c(TRUE, FALSE)
#'   )
#' )
#' x <- plantuml(x)
#' plot( x )
#' }
#'
as.plantuml <- function(x, ...) {
  UseMethod("as.plantuml", x)
}
rkrug/plantuml documentation built on June 3, 2023, 6:24 a.m.