Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/gtPublic

Fix empty dataframe error with process_md = TRUE#2083

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
Copilot wants to merge3 commits intomaster
base:master
Choose a base branch
Loading
fromcopilot/identify-quick-fix-issues

Conversation

Copy link

CopilotAI commentedNov 15, 2025
edited
Loading

Summary

Fixesdplyr::recode() error when passing empty dataframes togt() withgroupname_col andprocess_md = TRUE.

Related GitHub Issues and PRs

Changes

R/dt_stub_df.R

  • Added guard clause to skipdplyr::recode() whenunique_row_group_ids is empty (5 lines)

tests/testthat/test-gt_object.R

  • Added 5 test cases covering empty/non-empty dataframes withprocess_md combinations

Example

# Previously threw: Error in `dplyr::recode()`: ! No replacements provided.mtcars[0, ]|> gt(groupname_col="cyl",process_md=TRUE)# Now works correctly, returns empty gt_tbl

Checklist

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cloud.r-project.org
    • Triggering command:/usr/lib/R/bin/exec/R -e install.packages(c('devtools',~+~'testthat'),~+~repos='REDACTED',~+~Ncpus~+~=~+~4) (dns block)
    • Triggering command:/usr/lib/R/bin/exec/R -e devtools::install_deps(dependencies~+~=~+~TRUE) (dns block)
  • cran.rstudio.com
    • Triggering command:/usr/lib/R/bin/exec/R -e install.packages('remotes',~+~repos='REDACTED') (dns block)
  • esm.ubuntu.com
    • Triggering command:/usr/lib/apt/methods/https (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Amongst all the issues, could you identify ones that would require quick fixes?


✨ Let Copilot coding agentset things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: rich-iannone <5612024+rich-iannone@users.noreply.github.com>
CopilotAI changed the title[WIP] Identify issues requiring quick fixesFix empty dataframe error with process_md = TRUENov 15, 2025
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign ourContributor License Agreement before we can accept your contribution.
1 out of2 committers have signed the CLA.

✅ rich-iannone
❌ Copilot
You have signed the CLA already but the status is still pending? Let usrecheck it.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@rich-iannonerich-iannoneAwaiting requested review from rich-iannone

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@CLAassistant@rich-iannone

[8]ページ先頭

©2009-2025 Movatter.jp