Skip to content

Commit

Permalink
Starting to fix R upgrade issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Muston committed Jan 6, 2024
1 parent 4fb42c7 commit 68abd24
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export(give_noparams)
export(give_noparams_par)
export(graph_psm_hazards)
export(graph_psm_survs)
export(graph_survs)
export(prob_os_psm)
export(prob_os_stm_cf)
export(prob_os_stm_cr)
Expand Down
4 changes: 2 additions & 2 deletions R/ppdpps.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ pickout_psmhaz <- function(timepoint, endpoint, ptdata, dpam, psmtype) {
# Run calculation of all hazards
allhaz <- calc_haz_psm(timepoint, ptdata, dpam, type)
# Required hazard, unadjusted
h_unadj <- case_when(
h_unadj <- dplyr::case_when(
endpoint=="TTP" ~ allhaz$unadj$ttp,
endpoint=="PPD" ~ allhaz$unadj$ppd,
endpoint=="PFS" ~ allhaz$unadj$pfs,
Expand All @@ -176,7 +176,7 @@ pickout_psmhaz <- function(timepoint, endpoint, ptdata, dpam, psmtype) {
.default = NA
)
# Required hazard, adjusted
h_adj <- case_when(
h_adj <- dplyr::case_when(
endpoint=="TTP" ~ allhaz$adj$ttp,
endpoint=="PPD" ~ allhaz$adj$ppd,
endpoint=="PFS" ~ allhaz$adj$pfs,
Expand Down
1 change: 1 addition & 0 deletions R/probgraphs.R
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ prob_os_stm_cf <- function(time, dpam, starting=c(1, 0, 0)) {
#' @param cuttime is the cut-off time for a two-piece model (default 0, indicating a one-piece model)
#' @param tpoints indicates how many timepoints should be included in the graphics (default 100)
#' @return Four datasets and graphics as a list
#' @export
#' @importFrom rlang .data
#' @examples
#' bosonc <- create_dummydata("flexbosms")
Expand Down
2 changes: 2 additions & 0 deletions vignettes/example.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ library(psm3mkv)
library(dplyr) # for data wrangling
library(boot) # for bootstrapping
library(ggsci) # for nice graphics
library(flexsurv) # for data to work
library(survival) # for data to work
```

## Obtaining a suitable dataset
Expand Down

0 comments on commit 68abd24

Please sign in to comment.