Skip to content

Fix dplyr::as_tibble and dplyr::tbl_df references to use tibble package#197

Merged
d-morrison merged 9 commits into
mainfrom
copilot/fix-as-tibble-references
May 7, 2026
Merged

Fix dplyr::as_tibble and dplyr::tbl_df references to use tibble package#197
d-morrison merged 9 commits into
mainfrom
copilot/fix-as-tibble-references

Conversation

Copilot AI commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

as_tibble() and tbl_df are exported from tibble, not dplyr. References to dplyr::as_tibble() still work via re-export but are incorrect, and [dplyr::tbl_df] roxygen links now resolve to dplyr:defunct.

Code

  • R/post_summ.R, R/Run_Mod.R: dplyr::as_tibble()tibble::as_tibble()

Documentation

  • R/Run_Mod.R, R/plot_predicted_curve.R, R/nepal_sees_jags_output.R, R/use_att_names.R: [dplyr::tbl_df][tibble::tbl_df] in roxygen2 comments

tibble was already in DESCRIPTION Imports; no dependency changes needed. R/as_case_data.R, R/sim_case_data.R, and R/postprocess_jags_output.R already used the correct tibble:: namespace.

Copilot AI requested review from Copilot and removed request for Copilot April 14, 2026 10:24
Copilot AI linked an issue Apr 14, 2026 that may be closed by this pull request
….R and Run_Mod.R

Agent-Logs-Url: https://github.com/ucdavis/serodynamics/sessions/212b7544-cbf9-4137-a367-61fd31be832d

Co-authored-by: sschildhauer <165851188+sschildhauer@users.noreply.github.com>
Copilot AI requested review from Copilot and removed request for Copilot April 14, 2026 10:45
Copilot AI requested review from Copilot and removed request for Copilot April 14, 2026 10:47
Copilot AI changed the title [WIP] Fix dplyr tibble references for as_tibble Fix dplyr::as_tibble and dplyr::tbl_df references to use tibble package Apr 14, 2026
Copilot AI requested a review from sschildhauer April 14, 2026 10:49

@sschildhauer sschildhauer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good

@github-actions

github-actions Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

📕 Preview documentation for this PR has been cleaned up.

@sschildhauer sschildhauer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good!

Copilot AI review requested due to automatic review settings April 21, 2026 10:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR cleans up namespace usage and documentation links by switching as_tibble() and tbl_df references from dplyr re-exports/defunct topics to the canonical tibble package, keeping the package’s code and docs aligned with current tidyverse exports.

Changes:

  • Updated code to call tibble::as_tibble() instead of dplyr::as_tibble() in key post-processing paths.
  • Updated roxygen links from [dplyr::tbl_df] to [tibble::tbl_df] (and regenerated .Rd output accordingly).
  • Bumped package development version and added a NEWS entry describing the change.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
R/post_summ.R Switches tibble conversion to tibble::as_tibble() for correct namespacing.
R/Run_Mod.R Switches tibble conversion to tibble::as_tibble() and updates roxygen link for sr_model return type.
R/plot_predicted_curve.R Updates roxygen link for dataset parameter type to tibble::tbl_df.
R/nepal_sees_jags_output.R Updates roxygen link in dataset format documentation to tibble::tbl_df.
R/use_att_names.R Updates roxygen link for run_mod() output type to tibble::tbl_df.
man/run_mod.Rd Regenerated docs reflecting tibble::tbl_df link target.
man/plot_predicted_curve.Rd Regenerated docs reflecting tibble::tbl_df link target.
man/nepal_sees_jags_output.Rd Regenerated docs reflecting tibble::tbl_df link target.
man/use_att_names.Rd Regenerated docs reflecting tibble::tbl_df link target.
NEWS.md Documents the namespace correction for as_tibble().
DESCRIPTION Bumps development version.

Comment thread R/Run_Mod.R Outdated
@Kwan-Jenny Kwan-Jenny self-requested a review April 28, 2026 02:11

@Kwan-Jenny Kwan-Jenny left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@sschildhauer

  1. Typo on line 183 ("restructing" → "restructuring") that the
    Copilot bot also noticed earlier — could we fix it here?
  2. Merge order with #195 and #199 — these PRs touch the same
    .Rd files. I think merging this one first is easiest since
    it's smallest. What do you think?
  3. Overlap with #193 — quick question about whether some of
    these fixes are also in #193, to avoid duplicate work.

Looks good overall. Once the typo is corrected and the merge order is finalized, it should be ready to go.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Comment thread R/Run_Mod.R Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 5, 2026 23:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated no new comments.

Merge commit '144cdd68a93c565dd7427fe3b9c01eb57ea10005'

#Conflicts:
#	NEWS.md
Copilot AI review requested due to automatic review settings May 6, 2026 22:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated no new comments.

@codecov-commenter

codecov-commenter commented May 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.42%. Comparing base (144cdd6) to head (28f3e83).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #197   +/-   ##
=======================================
  Coverage   81.42%   81.42%           
=======================================
  Files          25       25           
  Lines         915      915           
=======================================
  Hits          745      745           
  Misses        170      170           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated no new comments.

@sschildhauer

Copy link
Copy Markdown
Collaborator

@d-morrison, I just requested your review. This PR is basically changing all tbl_df references from dplyr to tibble. Thank you!

@sschildhauer sschildhauer marked this pull request as ready for review May 6, 2026 23:56

@d-morrison d-morrison left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM - thanks!

@d-morrison d-morrison merged commit 305470e into main May 7, 2026
18 checks passed
@d-morrison d-morrison deleted the copilot/fix-as-tibble-references branch May 7, 2026 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix dplyr tibble references for as_tibble

6 participants