Running examples in ‘riskRegression-Ex.R’ failed
The error most likely occurred in:

> ### Name: autoplot.predictCSC
> ### Title: Plot Predictions From a Cause-specific Cox Proportional Hazard
> ###   Regression
> ### Aliases: autoplot.predictCSC
> 
> ### ** Examples
> 
> library(survival)
> library(rms)
Loading required package: Hmisc
Loading required package: lattice
Loading required package: Formula
Loading required package: ggplot2

Attaching package: ‘Hmisc’

The following objects are masked from ‘package:base’:

    format.pval, units

Loading required package: SparseM

Attaching package: ‘SparseM’

The following object is masked from ‘package:base’:

    backsolve

> library(ggplot2)
> library(prodlim)
> 
> #### simulate data ####
> set.seed(10)
> d <- sampleData(1e2, outcome = "competing.risks")
> seqTau <- c(0,unique(sort(d[d$event==1,time])), max(d$time))
> 
> #### CSC model ####
> m.CSC <- CSC(Hist(time,event)~ X1 + X2 + X6, data = d)
> 
> pred.CSC <- predict(m.CSC, newdata = d[1:2,], time = seqTau, cause = 1, band = TRUE)
> autoplot(pred.CSC, alpha = 0.2)

 *** caught segfault ***
address 0x39, cause 'memory not mapped'

Traceback:
 1: grid.Call.graphics(C_text, as.graphicsAnnot(x$label), x$x, x$y,     resolveHJust(x$just, x$hjust), resolveVJust(x$just, x$vjust),     x$rot, x$check.overlap)
 2: drawDetails.text(x, recording = FALSE)
 3: drawDetails(x, recording = FALSE)
 4: drawGrob(x)
 5: recordGraphics(drawGrob(x), list(x = x), getNamespace("grid"))
 6: grid.draw.grob(x$children[[i]], recording = FALSE)
 7: grid.draw(x$children[[i]], recording = FALSE)
 8: drawGTree(x)
 9: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
10: grid.draw.gTree(x$children[[i]], recording = FALSE)
11: grid.draw(x$children[[i]], recording = FALSE)
12: drawGTree(x)
13: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
14: grid.draw.gTree(x$children[[i]], recording = FALSE)
15: grid.draw(x$children[[i]], recording = FALSE)
16: drawGTree(x)
17: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
18: grid.draw.gTree(x$children[[i]], recording = FALSE)
19: grid.draw(x$children[[i]], recording = FALSE)
20: drawGTree(x)
21: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
22: grid.draw.gTree(x$children[[i]], recording = FALSE)
23: grid.draw(x$children[[i]], recording = FALSE)
24: drawGTree(x)
25: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
26: grid.draw.gTree(gtable)
27: grid.draw(gtable)
28: print.ggplot(gg.res$plot)
29: print(gg.res$plot)
30: autoplot.predictCSC(pred.CSC, alpha = 0.2)
31: autoplot(pred.CSC, alpha = 0.2)
An irrecoverable exception occurred. R is aborting now ...