Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: serodynamics
Title: What the Package Does (One Line, Title Case)
Version: 0.0.0.9047
Version: 0.0.0.9048
Authors@R: c(
person("Peter", "Teunis", , "p.teunis@emory.edu", role = c("aut", "cph"),
comment = "Author of the method and original code."),
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# serodynamics (development version)

* Fixed `dplyr::as_tibble()` references to `tibble::as_tibble()` in `post_summ()` and `run_mod()`, since `as_tibble()` is exported from the `tibble` package, not `dplyr`.
* Added dev container configuration for persistent, cached development environment
that includes R, JAGS, and all dependencies preinstalled, making Copilot
Workspace sessions much faster.
Expand Down
4 changes: 2 additions & 2 deletions R/Run_Mod.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#' should be included as an element of the [list] object returned by `run_mod()`
#' (see `Value` section below for details).
#' Note: These objects can be large.
#' @returns An `sr_model` class object: a subclass of [dplyr::tbl_df] that
#' @returns An `sr_model` class object: a subclass of [tibble::tbl_df] that
#' contains MCMC samples from the joint posterior distribution of the model
#' parameters, conditional on the provided input `data`,
#' including the following:
Expand Down Expand Up @@ -181,7 +181,7 @@ run_mod <- function(data,
# jags output results for each stratification rbinded.

# Making output a tibble and restructing.
jags_out <- dplyr::as_tibble(jags_out) |>
jags_out <- tibble::as_tibble(jags_out) |>
select(!c("Parameter")) |>
Comment on lines 183 to 185
Copy link

Copilot AI Apr 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 183 has a typo ("restructing") and line 184 has extra spacing before the native pipe () |>), which makes the comment/code harder to read and may cause noisy diffs later. Consider correcting the comment (e.g., "restructuring") and normalizing spacing to a single space before |>.

Copilot uses AI. Check for mistakes.
rename("Parameter" = "Parameter_sub")
jags_out <- jags_out[, c("Iteration", "Chain", "Parameter", "Iso_type",
Expand Down
12 changes: 6 additions & 6 deletions R/nepal_sees_jags_output.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
#' which is the diagnosis type (typhoid or
#' paratyphoid). Keeping only IDs `"newperson"`, `"sees_npl_1"`, `"sees_npl_2"`.
#'
#' @format An S3 object of class `sr_model`: A [dplyr::tbl_df] that contains the
#' posterior predictive distribution of the person-specific parameters for a
#' "new person" with no observed data (`Subject = "newperson"`) and posterior
#' distributions of the person-specific parameters for two arbitrarily-chosen
#' subjects (`"sees_npl_1"` and `"sees_npl_2"`).
#' Contains 40,000 `rows`, 7 `columns`, and model `attributes`.
#' @format An S3 object of class `sr_model`: A [tibble::tbl_df] that contains
#' the posterior predictive distribution of the person-specific parameters for
#' a "new person" with no observed data (`Subject = "newperson"`) and posterior
#' distributions of the person-specific parameters for two arbitrarily-chosen
#' subjects (`"sees_npl_1"` and `"sees_npl_2"`).
#' Contains 40,000 `rows`, 7 `columns`, and model `attributes`.
#' \describe{
#' \item{Iteration}{Number of sampling iterations: 500 iterations}
#' \item{Chain}{Number of MCMC chains run: 2 chains run}
Expand Down
2 changes: 1 addition & 1 deletion R/plot_predicted_curve.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' @param ids The participant IDs to plot; for example, `"sees_npl_128"`.
#' @param antigen_iso The antigen isotype to plot; for example, "HlyE_IgA" or
#' "HlyE_IgG".
#' @param dataset (Optional) A [dplyr::tbl_df] with observed antibody response
#' @param dataset (Optional) A [tibble::tbl_df] with observed antibody response
#' data.
#' Must contain:
#' - `timeindays`
Expand Down
2 changes: 1 addition & 1 deletion R/post_summ.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ post_summ <- function(data,
`50.0%` = quantile(.data$value, 0.50),
`75.0%` = quantile(.data$value, 0.75),
`97.5%` = quantile(.data$value, 0.975))
dplyr::as_tibble(summarize_jags)
tibble::as_tibble(summarize_jags)
}
2 changes: 1 addition & 1 deletion R/use_att_names.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#' @description
#' `use_att_names` takes prepared longitudinal data for antibody kinetic
#' modeling and names columns using attribute values to allow merging
#' with a modeled [run_mod()] output [dplyr::tbl_df]. The column names include
#' with a modeled [run_mod()] output [tibble::tbl_df]. The column names include
#' `Subject`, `Iso_type`, `t`, and `result`.
#' @param data A [data.frame] raw longitudinal data that has been
#' prepared for antibody kinetic modeling using [as_case_data()].
Expand Down
6 changes: 3 additions & 3 deletions man/nepal_sees_jags_output.Rd

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

2 changes: 1 addition & 1 deletion man/plot_predicted_curve.Rd

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

2 changes: 1 addition & 1 deletion man/run_mod.Rd

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

2 changes: 1 addition & 1 deletion man/use_att_names.Rd

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

Loading