Skip to content

Commit

Permalink
Issue 217: Resolve check notes (#219)
Browse files Browse the repository at this point in the history
* Add README.Rmd to Rbuildignore

* Move bayesplot and posterior to Suggests rather than Imports

* Add tidyr (use in vignette)

* Perhaps do need posterior -- confusing checks

* Add explicit stats::update
  • Loading branch information
athowes authored Aug 2, 2024
1 parent a4ab006 commit 9d0d677
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
^pkgdown$
^doc$
^Meta$
README.Rmd
7 changes: 4 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@ Imports:
cmdstanr,
data.table,
ggplot2,
posterior,
purrr,
ggridges,
stats,
cli,
checkmate,
rstan,
bayesplot
posterior
Suggests:
bookdown,
testthat (>= 3.0.0),
Expand All @@ -45,7 +44,9 @@ Suggests:
dplyr,
knitr,
roxyglobals,
tibble
tibble,
bayesplot,
tidyr
Remotes:
stan-dev/cmdstanr,
Rdatatable/data.table,
Expand Down
3 changes: 2 additions & 1 deletion R/latent_individual.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,14 @@ epidist_family.epidist_latent_individual <- function(data,
#' @method epidist_formula epidist_latent_individual
#' @family latent_individual
#' @importFrom brms brmsterms
#' @importFrom stats update
#' @export
epidist_formula.epidist_latent_individual <- function(data, family, formula,
...) {
epidist_validate(data)
formula <- brms:::validate_formula(formula, data = data, family = family)

formula <- update(
formula <- stats::update(
formula, delay_central | vreal(obs_t, pwindow_upr, swindow_upr) ~ .
)

Expand Down

0 comments on commit 9d0d677

Please sign in to comment.