Nothing
#' @title Convert to a Terminator
#'
#' @description
#' Convert object to a [Terminator] or a list of [Terminator].
#'
#' @param x (any)\cr
#' Object to convert.
#' @param ... (any)\cr
#' Additional arguments.
#'
#' @export
as_terminator = function(x, ...) { # nolint
UseMethod("as_terminator")
}
#' @export
#' @param clone (`logical(1)`)\cr
#' If `TRUE`, ensures that the returned object is not the same as the input `x`.
#' @rdname as_terminator
as_terminator.Terminator = function(x, clone = FALSE, ...) { # nolint
if (isTRUE(clone)) x$clone() else x
}
#' @export
#' @rdname as_terminator
as_terminators = function(x, ...) { # nolint
UseMethod("as_terminators")
}
#' @export
#' @rdname as_terminator
as_terminators.default = function(x, ...) { # nolint
list(as_terminator(x, ...))
}
#' @export
#' @rdname as_terminator
as_terminators.list = function(x, ...) { # nolint
lapply(x, as_terminator, ...)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.