Skip to content

Commit

Permalink
use cmdstanr generic
Browse files Browse the repository at this point in the history
  • Loading branch information
gowerc committed Jul 31, 2024
1 parent 3f28788 commit 4a3056e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ import(ggplot2)
import(methods)
import(stringr)
importFrom(Rdpack,reprompt)
importFrom(cmdstanr,as.CmdStanMCMC)
importFrom(ggplot2,autoplot)
importFrom(ggplot2.utils,geom_km)
importFrom(glue,as_glue)
Expand Down
15 changes: 15 additions & 0 deletions R/external-exports.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,18 @@ NULL
#' @export autoplot
#' @family autoplot
NULL


#' Coerce to `CmdStanMCMC`
#'
#' @param object to be converted
#' @param ... additional options
#'
#' @description
#' Coerces an object to a [`cmdstanr::CmdStanMCMC`] object
#'
#' @name as.CmdStanMCMC
#'
#' @importFrom cmdstanr as.CmdStanMCMC
#' @export as.CmdStanMCMC
NULL
14 changes: 0 additions & 14 deletions R/generics.R
Original file line number Diff line number Diff line change
Expand Up @@ -332,20 +332,6 @@ hazardWindows <- function(object, ...) {
UseMethod("hazardWindows")
}


#' Coerce to `CmdStanMCMC`
#'
#' @param object to be converted
#' @param ... additional options
#'
#' @description
#' Coerces an object to a [`cmdstanr::CmdStanMCMC`] object
#'
#' @export
as.CmdStanMCMC <- function(object, ...) {
UseMethod("as.CmdStanMCMC")
}

#' @rdname Quant-Dev
#' @export
as.QuantityGenerator <- function(object, ...) {
Expand Down
8 changes: 3 additions & 5 deletions man/as.CmdStanMCMC.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4a3056e

Please sign in to comment.