|
| 1 | + |
| 2 | +#' Coercion methods for CmdStan objects |
| 3 | +#' |
| 4 | +#' These methods are used to coerce objects into `cmdstanr` objects. |
| 5 | +#' Primarily intended for other packages to use when interfacing |
| 6 | +#' with `cmdstanr`. |
| 7 | +#' |
| 8 | +#' @param object to be coerced |
| 9 | +#' @param ... additional arguments |
| 10 | +#' |
| 11 | +#' @name cmdstan_coercion |
| 12 | +NULL |
| 13 | + |
| 14 | +#' @rdname cmdstan_coercion |
| 15 | +#' @export |
| 16 | +as.CmdStanMCMC <- function(object, ...) { |
| 17 | + UseMethod("as.CmdStanMCMC") |
| 18 | +} |
| 19 | + |
| 20 | +#' @rdname cmdstan_coercion |
| 21 | +#' @export |
| 22 | +as.CmdStanMLE <- function(object, ...) { |
| 23 | + UseMethod("as.CmdStanMLE") |
| 24 | +} |
| 25 | + |
| 26 | +#' @rdname cmdstan_coercion |
| 27 | +#' @export |
| 28 | +as.CmdStanLaplace <- function(object, ...) { |
| 29 | + UseMethod("as.CmdStanLaplace") |
| 30 | +} |
| 31 | + |
| 32 | +#' @rdname cmdstan_coercion |
| 33 | +#' @export |
| 34 | +as.CmdStanVB <- function(object, ...) { |
| 35 | + UseMethod("as.CmdStanVB") |
| 36 | +} |
| 37 | + |
| 38 | +#' @rdname cmdstan_coercion |
| 39 | +#' @export |
| 40 | +as.CmdStanPathfinder <- function(object, ...) { |
| 41 | + UseMethod("as.CmdStanPathfinder") |
| 42 | +} |
| 43 | + |
| 44 | +#' @rdname cmdstan_coercion |
| 45 | +#' @export |
| 46 | +as.CmdStanGQ <- function(object, ...) { |
| 47 | + UseMethod("as.CmdStanGQ") |
| 48 | +} |
| 49 | + |
| 50 | +#' @rdname cmdstan_coercion |
| 51 | +#' @export |
| 52 | +as.CmdStanDiagnose <- function(object, ...) { |
| 53 | + UseMethod("as.CmdStanDiagnose") |
| 54 | +} |
0 commit comments