Fix missing FUN.VALUE in vapply call when resuming ped2com checkpoint#139
Merged
smasongarrison merged 2 commits intodev_mainfrom Mar 24, 2026
Merged
Conversation
Co-authored-by: smasongarrison <6001608+smasongarrison@users.noreply.github.com> Agent-Logs-Url: https://github.com/R-Computing-Lab/BGmisc/sessions/93bb6734-9e37-4cd1-b415-9d67049126ca
Copilot
AI
changed the title
[WIP] Fix error in vapply with missing FUN.VALUE argument
Fix missing Mar 24, 2026
FUN.VALUE in vapply call when resuming ped2com checkpoint
smasongarrison
approved these changes
Mar 24, 2026
smasongarrison
added a commit
that referenced
this pull request
Mar 24, 2026
…kpoint (#139) * Initial plan * Fix vapply missing FUN.VALUE argument in .loadOrComputeParList Co-authored-by: smasongarrison <6001608+smasongarrison@users.noreply.github.com> Agent-Logs-Url: https://github.com/R-Computing-Lab/BGmisc/sessions/93bb6734-9e37-4cd1-b415-9d67049126ca --------- Co-Authored-By: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-Authored-By: smasongarrison <6001608+smasongarrison@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev_main #139 +/- ##
=========================================
Coverage 84.47% 84.47%
=========================================
Files 30 30
Lines 4973 4973
=========================================
Hits 4201 4201
Misses 772 772 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When calling
ped2com()withresume = TRUE, the.loadOrComputeParListfunction crashes becausevapplyis called without the requiredFUN.VALUEargument.Change
R/buildComponent.R— addlogical(1)as theFUN.VALUEtemplate tovapply:This code path is only hit on resume (loading a saved
parListcheckpoint), which is why normal runs succeed while resumed runs fail.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.