Skip to content

Commit fecef52

Browse files
committed
prepare cran submission 0.10.5
1 parent 96a64b1 commit fecef52

File tree

10 files changed

+112
-104
lines changed

10 files changed

+112
-104
lines changed

DESCRIPTION

Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,18 @@ Type: Package
33
Title: Fitting Flexible Smooth-in-Time Hazards and Risk Functions via Logistic and Multinomial Regression
44
Version: 0.10.5
55
Date: 2024-04-09
6-
Authors@R:
7-
c(person(given = "Sahir",
8-
family = "Bhatnagar",
9-
role = c("aut", "cre"),
10-
email = "sahir.bhatnagar@gmail.com",
11-
comment = "https://sahirbhatnagar.com/"),
12-
person(given = "Maxime",
13-
family = "Turgeon",
14-
role = "aut",
15-
email = "max.turgeon@umanitoba.ca",
16-
comment = "https://www.maxturgeon.ca/"),
17-
person(given = "Jesse",
18-
family = "Islam",
19-
role = "aut",
20-
email = "jesse.islam@mail.mcgill.ca",
21-
comment = "https://www.jesseislam.com/"),
22-
person(given = "Olli",
23-
family = "Saarela",
24-
role = "aut",
25-
email = "olli.saarela@utoronto.ca",
26-
comment = "https://www.dlsph.utoronto.ca/faculty-profile/saarela-olli/"),
27-
person(given = "James",
28-
family = "Hanley",
29-
role = "aut",
30-
email = "james.hanley@mcgill.ca",
31-
comment = "https://jhanley.biostat.mcgill.ca/"))
6+
Authors@R: c(
7+
person("Sahir", "Bhatnagar", , "sahir.bhatnagar@gmail.com", role = c("aut", "cre"),
8+
comment = "https://sahirbhatnagar.com/"),
9+
person("Maxime", "Turgeon", , "max.turgeon@umanitoba.ca", role = "aut",
10+
comment = "https://www.maxturgeon.ca/"),
11+
person("Jesse", "Islam", , "jesse.islam@mail.mcgill.ca", role = "aut",
12+
comment = "https://www.jesseislam.com/"),
13+
person("Olli", "Saarela", , "olli.saarela@utoronto.ca", role = "aut",
14+
comment = "https://www.dlsph.utoronto.ca/faculty-profile/saarela-olli/"),
15+
person("James", "Hanley", , "james.hanley@mcgill.ca", role = "aut",
16+
comment = "https://jhanley.biostat.mcgill.ca/")
17+
)
3218
Description: Fit flexible and fully parametric hazard regression models to survival data with single event type or multiple
3319
competing causes via logistic and multinomial regression. Our formulation allows for arbitrary functional forms
3420
of time and its interactions with other predictors for time-dependent hazards and hazard ratios. From the
@@ -42,7 +28,7 @@ Depends:
4228
R (>= 3.5.0)
4329
Imports:
4430
data.table,
45-
ggplot2,
31+
ggplot2 (>= 3.4.0),
4632
methods,
4733
mgcv,
4834
stats,

NEWS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
* Skip tests when R is compiled against ATLAS BLAS
44
* Set seed for reproducible tests
5+
* Addressed deprecation warning in ggplot2
56

67
# casebase 0.10.4
78

8-
* Fix bug with tangled outputs of vignettes.
9+
* Fixed bug with tangled outputs of vignettes.
910

1011
# casebase 0.10.3
1112

R/popTime.R

Lines changed: 75 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -269,62 +269,79 @@ popTime <- function(data, time, event, censored.indicator,
269269
#' @importFrom ggplot2 margin element_blank rel %+replace%
270270
theme_cb <- function(font_size = 14, font_family = "", line_size = 0.5,
271271
rel_small = 12/14, rel_tiny = 11/14, rel_large = 16/14) {
272-
half_line <- 0.5 * font_size
273-
small_size <- rel_small * font_size
274-
ggplot2::theme_grey(base_size = font_size, base_family = font_family) %+replace%
275-
theme(line = element_line(color = "black", size = line_size,
276-
linetype = 1, lineend = "butt"), rect = element_rect(fill = NA,
277-
color = NA, size = line_size, linetype = 1), text = element_text(family = font_family,
278-
face = "plain", color = "black", size = font_size,
279-
hjust = 0.5, vjust = 0.5, angle = 0, lineheight = 0.9,
280-
margin = margin(), debug = FALSE), axis.line = element_line(color = "black",
281-
size = line_size, lineend = "square"), axis.line.x = NULL,
282-
axis.line.y = NULL, axis.text = element_text(color = "black",
283-
size = small_size), axis.text.x = element_text(margin = margin(t = 0.25 * small_size),
284-
vjust = 1), axis.text.x.top = element_text(margin = margin(b = 0.25 * small_size),
285-
vjust = 0), axis.text.y = element_text(margin = margin(r = 0.25 * small_size),
286-
hjust = 1), axis.text.y.right = element_text(margin = margin(l = 0.25 * small_size),
287-
hjust = 0), axis.ticks = element_line(color = "black",
288-
size = line_size), axis.ticks.length = unit(0.5 * half_line,
289-
"pt"), axis.title.x = element_text(margin = margin(t = 0.5 * half_line),
290-
vjust = 1), axis.title.x.top = element_text(margin = margin(b = 0.5 * half_line),
291-
vjust = 0), axis.title.y = element_text(angle = 90,
292-
margin = margin(r = 0.5 * half_line),
293-
vjust = 1),
294-
axis.title.y.right = element_text(angle = -90, margin = margin(l = 0.5 * half_line),
295-
vjust = 0), legend.background = element_blank(),
296-
legend.spacing = unit(font_size, "pt"), legend.spacing.x = NULL,
297-
legend.spacing.y = NULL, legend.margin = margin(0,
298-
0, 0, 0), legend.key = element_blank(), legend.key.size = unit(1.1 *
299-
font_size, "pt"), legend.key.height = NULL,
300-
legend.key.width = NULL, legend.text = element_text(size = rel(rel_small)),
301-
legend.text.align = NULL, legend.title = element_text(hjust = 0),
302-
legend.title.align = NULL, legend.position = "right",
303-
legend.direction = NULL, legend.justification = c("left",
304-
"center"), legend.box = NULL, legend.box.margin = margin(0,
305-
0, 0, 0), legend.box.background = element_blank(),
306-
legend.box.spacing = unit(font_size, "pt"), panel.background = element_blank(),
307-
panel.border = element_blank(), panel.grid = element_blank(),
308-
panel.grid.major = NULL, panel.grid.minor = NULL,
309-
panel.grid.major.x = NULL, panel.grid.major.y = NULL,
310-
panel.grid.minor.x = NULL, panel.grid.minor.y = NULL,
311-
panel.spacing = unit(half_line, "pt"), panel.spacing.x = NULL,
312-
panel.spacing.y = NULL, panel.ontop = FALSE, strip.background = element_rect(fill = "grey80"),
313-
strip.text = element_text(size = rel(rel_small),
314-
margin = margin(0.5 * half_line, 0.5 * half_line, 0.5 * half_line,
315-
0.5 * half_line)), strip.text.x = NULL, strip.text.y = element_text(angle = -90),
316-
strip.placement = "inside", strip.placement.x = NULL,
317-
strip.placement.y = NULL, strip.switch.pad.grid = unit(0.5 * half_line,
318-
"pt"), strip.switch.pad.wrap = unit(0.5 * half_line,
319-
"pt"), plot.background = element_blank(), plot.title = element_text(face = "bold",
320-
size = rel(rel_large), hjust = 0, vjust = 1,
321-
margin = margin(b = half_line)), plot.subtitle = element_text(size = rel(rel_small),
322-
hjust = 0, vjust = 1, margin = margin(b = half_line)),
323-
plot.caption = element_text(size = rel(rel_tiny),
324-
hjust = 1, vjust = 1, margin = margin(t = half_line)),
325-
plot.tag = element_text(face = "bold", hjust = 0,
326-
vjust = 0.7), plot.tag.position = c(0, 1), plot.margin = margin(half_line,
327-
half_line, half_line, half_line), complete = TRUE)
272+
half_line <- 0.5 * font_size
273+
small_size <- rel_small * font_size
274+
ggplot2::theme_grey(base_size = font_size, base_family = font_family) %+replace%
275+
theme(line = element_line(color = "black", linewidth = line_size,
276+
linetype = 1, lineend = "butt"),
277+
rect = element_rect(fill = NA, color = NA, linewidth = line_size,
278+
linetype = 1),
279+
text = element_text(family = font_family,
280+
face = "plain", color = "black", size = font_size,
281+
hjust = 0.5, vjust = 0.5, angle = 0, lineheight = 0.9,
282+
margin = margin(), debug = FALSE),
283+
axis.line = element_line(color = "black",
284+
linewidth = line_size,
285+
lineend = "square"),
286+
axis.line.x = NULL,
287+
axis.line.y = NULL,
288+
axis.text = element_text(color = "black", size = small_size),
289+
axis.text.x = element_text(margin = margin(t = 0.25 * small_size),
290+
vjust = 1),
291+
axis.text.x.top = element_text(margin = margin(b = 0.25 * small_size),
292+
vjust = 0),
293+
axis.text.y = element_text(margin = margin(r = 0.25 * small_size),
294+
hjust = 1),
295+
axis.text.y.right = element_text(margin = margin(l = 0.25 * small_size),
296+
hjust = 0),
297+
axis.ticks = element_line(color = "black", linewidth = line_size),
298+
axis.ticks.length = unit(0.5 * half_line, "pt"),
299+
axis.title.x = element_text(margin = margin(t = 0.5 * half_line),
300+
vjust = 1),
301+
axis.title.x.top = element_text(margin = margin(b = 0.5 * half_line),
302+
vjust = 0),
303+
axis.title.y = element_text(angle = 90,
304+
margin = margin(r = 0.5 * half_line),
305+
vjust = 1),
306+
axis.title.y.right = element_text(angle = -90, margin = margin(l = 0.5 * half_line),
307+
vjust = 0), legend.background = element_blank(),
308+
legend.spacing = unit(font_size, "pt"), legend.spacing.x = NULL,
309+
legend.spacing.y = NULL,
310+
legend.margin = margin(0, 0, 0, 0),
311+
legend.key = element_blank(),
312+
legend.key.size = unit(1.1 * font_size, "pt"), legend.key.height = NULL,
313+
legend.key.width = NULL, legend.text = element_text(size = rel(rel_small)),
314+
legend.text.align = NULL, legend.title = element_text(hjust = 0),
315+
legend.title.align = NULL, legend.position = "right",
316+
legend.direction = NULL,
317+
legend.justification = c("left", "center"),
318+
legend.box = NULL,
319+
legend.box.margin = margin(0, 0, 0, 0), legend.box.background = element_blank(),
320+
legend.box.spacing = unit(font_size, "pt"), panel.background = element_blank(),
321+
panel.border = element_blank(), panel.grid = element_blank(),
322+
panel.grid.major = NULL, panel.grid.minor = NULL,
323+
panel.grid.major.x = NULL, panel.grid.major.y = NULL,
324+
panel.grid.minor.x = NULL, panel.grid.minor.y = NULL,
325+
panel.spacing = unit(half_line, "pt"), panel.spacing.x = NULL,
326+
panel.spacing.y = NULL, panel.ontop = FALSE,
327+
strip.background = element_rect(fill = "grey80"),
328+
strip.text = element_text(size = rel(rel_small),
329+
margin = margin(0.5 * half_line, 0.5 * half_line, 0.5 * half_line,
330+
0.5 * half_line)),
331+
strip.text.x = NULL, strip.text.y = element_text(angle = -90),
332+
strip.placement = "inside", strip.placement.x = NULL,
333+
strip.placement.y = NULL,
334+
strip.switch.pad.grid = unit(0.5 * half_line, "pt"),
335+
strip.switch.pad.wrap = unit(0.5 * half_line, "pt"),
336+
plot.background = element_blank(),
337+
plot.title = element_text(face = "bold", size = rel(rel_large), hjust = 0, vjust = 1, margin = margin(b = half_line)),
338+
plot.subtitle = element_text(size = rel(rel_small), hjust = 0, vjust = 1, margin = margin(b = half_line)),
339+
plot.caption = element_text(size = rel(rel_tiny),
340+
hjust = 1, vjust = 1, margin = margin(t = half_line)),
341+
plot.tag = element_text(face = "bold", hjust = 0,
342+
vjust = 0.7), plot.tag.position = c(0, 1),
343+
plot.margin = margin(half_line, half_line, half_line, half_line),
344+
complete = TRUE)
328345
}
329346

330347

@@ -341,6 +358,7 @@ panelBorder <- function(color = "grey85", size = 1, linetype = 1,
341358
}
342359
theme(panel.border = element_rect(
343360
color = color, fill = NA,
344-
linetype = linetype, size = size
361+
linetype = linetype,
362+
linewidth = size
345363
))
346364
}

cran-comments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ There were no ERRORs or WARNINGs
44

55
## Test environments
66

7-
* local macOS 14.3, R 4.3.2
7+
* local macOS 14.4, R 4.3.2
88
* ubuntu 22.04 (on GH-Actions), R-release, R-devel, R-oldrelease
99
* Windows Server 2022 x64 (on GH-Actions), R-release
1010
* macOS 12.7 (on GH-Actions), R-release

revdep/README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,26 @@
33
|field |value |
44
|:--------|:-----------------------------------|
55
|version |R version 4.3.2 (2023-10-31) |
6-
|os |macOS Sonoma 14.3 |
6+
|os |macOS Sonoma 14.4.1 |
77
|system |aarch64, darwin20 |
88
|ui |RStudio |
99
|language |(EN) |
1010
|collate |en_US.UTF-8 |
1111
|ctype |en_US.UTF-8 |
1212
|tz |America/Toronto |
13-
|date |2024-02-01 |
14-
|rstudio |2023.12.0+369 Ocean Storm (desktop) |
13+
|date |2024-04-09 |
14+
|rstudio |2023.12.1+402 Ocean Storm (desktop) |
1515
|pandoc |2.19 @ /opt/homebrew/bin/pandoc |
1616

1717
# Dependencies
1818

19-
|package |old |new |Δ |
20-
|:----------|:------|:------|:--|
21-
|casebase |0.10.3 |0.10.4 |* |
22-
|data.table |NA |1.15.0 |* |
19+
|package |old |new |Δ |
20+
|:----------|:---|:------|:--|
21+
|casebase |NA |0.10.5 |* |
22+
|data.table |NA |1.15.4 |* |
23+
|ggplot2 |NA |3.5.0 |* |
24+
|munsell |NA |0.5.1 |* |
25+
|VGAM |NA |1.1-10 |* |
2326

2427
# Revdeps
2528

revdep/data.sqlite

72 KB
Binary file not shown.

0 commit comments

Comments
 (0)