Repository navigation
vpc_tte(rtte = TRUE) with rtte_calc_diff = FALSE or rtte_conditional = FALSE fails with "time must be a vector, not a function" unless the data have a column named t - #129
Merged
roninsightrx merged 1 commit intoNov 14, 2026
Conversation
With rtte_calc_diff = FALSE or rtte_conditional = FALSE, censoring marks were placed at `t`, which resolved to base::t() unless the data had such a column. Store the original absolute time as an internal `time_abs` column in format_vpc_input_data_tte() and use that instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
roninsightrx
commented
Nov 14, 2026
roninsightrx
left a comment
Collaborator
Author
There was a problem hiding this comment.
🤖 Codex review, round 1: ✅ approved
The implementation correctly preserves absolute time before RTTE conversion and uses it for censoring marks across all affected flag combinations. Tests adequately cover the regression. Full suite: 601 passed, 0 failed (5 unrelated plot warnings).
roninsightrx
marked this pull request as ready for review
November 14, 2026 19:27
roninsightrx
deleted the
nightshift/128-vpc-tte-rtte-true-with-rtte-calc-diff
branch
November 14, 2026 19:31
Merged
9 tasks done
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.
Closes #128
format_vpc_input_data_tte() now stores the original absolute time in an internal
time_abscolumn for RTTE data, and vpc_tte() uses it (instead of the undefinedt) for censoring marks, so rtte_calc_diff = FALSE / rtte_conditional = FALSE no longer error. Added regression test, bumped version to 1.3.7 with NEWS entry.🤖 Implemented by Claude Code and reviewed by Codex, orchestrated by nightshift. Review rounds are posted as comments below.