Skip to content

Commit

Permalink
remove epidist s3 method
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs committed Nov 24, 2024
1 parent c7a6c1d commit 1df4df2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 71 deletions.
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ S3method(assert_epidist,default)
S3method(assert_epidist,epidist_latent_model)
S3method(assert_epidist,epidist_linelist_data)
S3method(assert_epidist,epidist_naive_model)
S3method(epidist,default)
S3method(epidist_family_model,default)
S3method(epidist_family_model,epidist_latent_model)
S3method(epidist_family_prior,default)
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

Development version of `epidist`.


- Remove the default method for `epidist()`. See #467.

# epidist 0.1.0

This is the first minor release of `epidist` intended for early test users of the package.
Expand Down
17 changes: 3 additions & 14 deletions R/epidist.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,9 @@
#' @param ... Additional arguments passed to `fn` method.
#' @family fit
#' @export
epidist <- function(data, formula, family, prior, fn, ...) {
UseMethod("epidist")
}

#' Default method used for interface using `brms`
#'
#' @inheritParams epidist
#' @rdname epidist.default
#' @method epidist default
#' @family fit
#' @export
epidist.default <- function(data, formula = mu ~ 1,
family = lognormal(), prior = NULL,
fn = brms::brm, ...) {
epidist <- function(data, formula = mu ~ 1,
family = lognormal(), prior = NULL,
fn = brms::brm, ...) {
assert_epidist(data)
epidist_family <- epidist_family(data, family)
epidist_formula <- epidist_formula(
Expand Down
13 changes: 8 additions & 5 deletions man/epidist.Rd

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

51 changes: 0 additions & 51 deletions man/epidist.default.Rd

This file was deleted.

0 comments on commit 1df4df2

Please sign in to comment.