Skip to content

Commit dc29614

Browse files
niesslAlexandra Niessldanielinteractive
authored
CRAN comments (#53)
Fixes final CRAN comments Signed-off-by: niessl <64351230+niessl@users.noreply.github.com> Co-authored-by: Alexandra Niessl <alexandra.niessl@uni-ulm.de> Co-authored-by: Daniel Sabanes Bove <danielinteractive@users.noreply.github.com>
1 parent 131a5ca commit dc29614

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

DESCRIPTION

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
Type: Package
22
Package: simIDM
3-
Title: Simulating Clinical Trials with Endpoints Progression-Free Survival
4-
and Overall Survival using an Illness-Death Model
5-
Version: 0.0.4.9000
3+
Title: Simulating Oncology Trials using an Illness-Death Model
4+
Version: 0.0.5
65
Authors@R: c(
76
person("Alexandra", "Erdmann", , "alexandra.erdmann@uni-ulm.de", role = c("aut", "cre")),
87
person("Kaspar", "Rufibach", , "kaspar.rufibach@roche.com", role = "aut"),

NEWS.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# simIDM 0.0.4.9000
1+
# simIDM 0.0.5
22

3-
* First CRAN version of the package.
4-
* The package simulates illness-death models with constant, Weibull or piecewise constant transition hazards.
3+
- First CRAN version of the package.
4+
- The package simulates illness-death models with constant, Weibull or piecewise constant transition hazards.
55

66
### New Features
77

8-
* Exponentially, Weibull and piecewise exponentially distributed survival times.
9-
* Random censoring and event-driven censoring after a pre-specified number of PFS or OS events.
10-
* Arbitrary number of treatment arms and flexible randomization ratio.
11-
* Staggered study entry.
12-
* Derivation of PFS and OS survival functions from transition hazards.
8+
- Exponentially, Weibull and piecewise exponentially distributed survival times.
9+
- Random censoring and event-driven censoring after a pre-specified number of PFS or OS events.
10+
- Arbitrary number of treatment arms and flexible randomization ratio.
11+
- Staggered study entry.
12+
- Derivation of PFS and OS survival functions from transition hazards.

R/eventTracking.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ getTimePoint <- function(data, eventNum, typeEvent, byArm = FALSE) {
4545
dataTemp <- data[data$trt == trt, ]
4646
sortedTimes <- sort(dataTemp$time[dataTemp$event == 1])
4747
if (eventNum > length(sortedTimes)) {
48-
cat("Less events occur till EOS than specified \n")
48+
warning("Less events occur till EOS than specified \n")
4949
}
5050
timePoint <- sortedTimes[eventNum]
5151
})

R/getWaitTimeSum.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ getWaitTimeSum <- function(U, haz1, haz2, p1, p2, entry) {
4242
stime[i] <- res$root
4343
i <- i + 1
4444
if (res$root == 0) {
45-
cat("Error uniroot: accuracy (tol=10^-16) is not enough.")
45+
warning("uniroot: accuracy (tol=10^-16) is not enough.")
4646
}
4747
} else {
48-
cat("Error uniroot: Values at interval endpoints (interval=c(0,10000)) are not of opposite signs. \n")
48+
warning("uniroot: Values at interval endpoints (interval=c(0,10000)) are not of opposite signs. \n")
4949
}
5050
}
5151
stime

0 commit comments

Comments
 (0)