-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
|
||
#' Coercion methods for CmdStan objects | ||
#' | ||
#' These methods are used to coerce objects into `cmdstanr` objects. | ||
#' Primarily intended for other packages to use when interfacing | ||
#' with `cmdstanr`. | ||
#' | ||
#' @param object to be coerced | ||
#' @param ... additional arguments | ||
#' | ||
#' @name cmdstan_coercion | ||
NULL | ||
|
||
#' @rdname cmdstan_coercion | ||
#' @export | ||
as.CmdStanMCMC <- function(object, ...) { | ||
UseMethod("as.CmdStanMCMC") | ||
} | ||
|
||
#' @rdname cmdstan_coercion | ||
#' @export | ||
as.CmdStanMLE <- function(object, ...) { | ||
UseMethod("as.CmdStanMLE") | ||
} | ||
|
||
#' @rdname cmdstan_coercion | ||
#' @export | ||
as.CmdStanLaplace <- function(object, ...) { | ||
UseMethod("as.CmdStanLaplace") | ||
} | ||
|
||
#' @rdname cmdstan_coercion | ||
#' @export | ||
as.CmdStanVB <- function(object, ...) { | ||
UseMethod("as.CmdStanVB") | ||
} | ||
|
||
#' @rdname cmdstan_coercion | ||
#' @export | ||
as.CmdStanPathfinder <- function(object, ...) { | ||
UseMethod("as.CmdStanPathfinder") | ||
} | ||
|
||
#' @rdname cmdstan_coercion | ||
#' @export | ||
as.CmdStanGQ <- function(object, ...) { | ||
UseMethod("as.CmdStanGQ") | ||
} | ||
|
||
#' @rdname cmdstan_coercion | ||
#' @export | ||
as.CmdStanDiagnose <- function(object, ...) { | ||
UseMethod("as.CmdStanDiagnose") | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.