Add RMST in R and RMST R vs. SAS comparison - #598
Merged
Merged
Conversation
DrLynTaylor
approved these changes
Jul 13, 2026
Collaborator
|
@yannickvandendijck please could you add package survRM2 to your version of the renv lock file so we can bring this PR in, thanks. |
This was referenced Aug 21, 2026
Merged
abiterry
pushed a commit
that referenced
this pull request
Sep 24, 2026
CI has failed at "Set up renv" on every branch since ~24 July 2026, including pushes straight to main. The trigger was GitHub migrating ubuntu-latest to a new image: setup-renv keys its package cache on sessionInfo()$running, so the migration invalidated every cache at once. That exposed a latent problem. renv.lock pointed at packagemanager.posit.co/cran/latest, which only ever serves the *current* version of each package, and 154 of the 374 pinned versions were no longer current. With no binary available, renv fell back to compiling old source tarballs from the CRAN archive, which fails on the new runner. A warm cache had hidden this for months. Changes: - Pin the repository to a dated snapshot (cran/2026-08-14) and re-snapshot so every recorded version matches that date. Verified that all 365 repository-sourced records resolve on macOS arm64, Windows and Linux, and that all 170 compiled packages are served as prebuilt binaries for both noble and resolute. CI now compiles nothing. - Stop recording the 15 packages that ship with R (mgcv, Matrix, survival, lattice, ...). Their versions track the R build rather than CRAN, so no snapshot date can ever satisfy them; this is also what broke local installs on macOS. utils/quarto_check_pkg_dependencies.R already handles these having no hash. - Add survRM2 1.0-4 and its dependency muhaz, to unblock #598. - Drop survMisc: CRAN archived it on 17 March 2026, it is no longer a survminer dependency, and it is only mentioned in prose. km.ci, KMsurv, plyr, reshape2 and rgl go with it as transitive dependencies that current versions no longer need. - Pin runs-on to ubuntu-24.04 in both workflows so a future image migration cannot silently invalidate the caches again. Note: 138 package versions change, so the Quarto freeze cache will be largely invalidated and most pages will re-execute on the first run.
DrLynTaylor
approved these changes
Sep 30, 2026
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.
Request to add two new pages:
A page on Restricted Mean Survival Time (RMST) in R to act as the equivalent of the existing page for SAS. Both pages use the same data and methods.
A page comparing RMST outputs in R and SAS. Note that the page on RMST in SAS does not provide the output for one analysis (Method 2: Pseudo-value estimation), so R-SAS comparisons were not possible for that method.