diff --git a/DESCRIPTION b/DESCRIPTION index e88b4c4..fe1e171 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -32,7 +32,6 @@ Imports: glue, ggplot2, loo, - methods, patchwork, posterior, rlang, diff --git a/R/stan_utilities.R b/R/stan_utilities.R index 62fbb3d..24371e1 100644 --- a/R/stan_utilities.R +++ b/R/stan_utilities.R @@ -178,9 +178,10 @@ get_ndraws <- function(x) { #' Get the draws of a Stan model fit #' #' @inheritParams get_pars_oi +#' @param pars A `character` vector of parameter names. #' @keywords internal #' @export -get_draws <- function(x, ...) { +get_draws <- function(x, pars) { UseMethod("get_draws") } @@ -346,7 +347,6 @@ get_ndraws.CmdStanMCMC_CSV <- function(x) { } #' @rdname get_draws -#' @param pars A `character` vector of parameter names #' @keywords internal #' @export get_draws.stanfit <- function(x, pars) { @@ -360,7 +360,6 @@ get_draws.stanfit <- function(x, pars) { } #' @rdname get_draws -#' @param pars A `character` vector of parameter names #' @keywords internal #' @export get_draws.CmdStanMCMC <- function(x, pars) { @@ -368,7 +367,6 @@ get_draws.CmdStanMCMC <- function(x, pars) { } #' @rdname get_draws -#' @param pars A `character` vector of parameter names #' @keywords internal #' @export get_draws.CMdStanMCMC_CSV <- function(x, pars) { diff --git a/man/get_draws.Rd b/man/get_draws.Rd index ca8a0d6..f9b1296 100644 --- a/man/get_draws.Rd +++ b/man/get_draws.Rd @@ -7,7 +7,7 @@ \alias{get_draws.CMdStanMCMC_CSV} \title{Get the draws of a Stan model fit} \usage{ -get_draws(x, ...) +get_draws(x, pars) \method{get_draws}{stanfit}(x, pars) @@ -19,7 +19,7 @@ get_draws(x, ...) \item{x}{A \code{stanfit} (from \code{rstan}) or a \code{CmdStanMCMC} (from \code{cmdstanr}) object.} -\item{pars}{A \code{character} vector of parameter names} +\item{pars}{A \code{character} vector of parameter names.} } \description{ Get the draws of a Stan model fit