Skip to content

Fix Issue #42 - #44

Open
mbannick wants to merge 2 commits into
mainfrom
issue-42
Open

mbannick wants to merge 2 commits into
mainfrom
issue-42

Conversation

@mbannick

@mbannick mbannick commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Added a reserved name check (+ test) for the TTE functions based on issue (#42) from @dbackenroth.

Also fixed a test with the survdiff comparison that arose and makes sure to be careful about package versions.

@mbannick
mbannick requested review from Eureeca and removed request for Eureeca October 15, 2026 21:54
@mbannick

Copy link
Copy Markdown
Owner Author

@dbackenroth thanks for pointing out the issue -- could you please review?

@mbannick mbannick mentioned this pull request Oct 15, 2026

@dbackenroth dbackenroth 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.

looks great, just one minor comment on the error messages

Comment thread R/utils-arg.R
bad <- unique(c(bad, used[grepl(prefix_pattern, used)]))
if(length(bad) > 0){
stop(paste0(
"The following covariate column(s) in df use reserved names that are ",

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.

this looks good, did you intend that a much longer and informative error message gets displayed when the covariate column name clashes but not when the strata column name clashes?

This branch has not been deployed

No deployments
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.

2 participants