Running examples in 'riskCommunicator-Ex.R' failed
The error most likely occurred in:

> ### Name: print.gComp
> ### Title: Print estimates of difference and ratio effects obtained in the
> ###   bootstrap computations of the g-computation
> ### Aliases: print.gComp
> ### Keywords: print.gComp
> 
> ### ** Examples
> 
> ## Obtain the risk difference and risk ratio for cardiovascular disease or 
> ## death between patients with and without diabetes, while controlling for
> ## age, sex, BMI, whether the individual is currently a smoker, and 
> ## if they have a history of hypertension.
> data(cvdd)
> set.seed(4832)
> diabetes.result <- gComp(data = cvdd, Y = "cvd_dth", X = "bmicat",
+ Z = c("AGE", "SEX", "DIABETES", "CURSMOKE", "PREVHYP"), outcome.type = "binary", R = 20)
> print(diabetes.result)
Formula: 
cvd_dth ~ bmicat + AGE + SEX + DIABETES + CURSMOKE + PREVHYP 

Parameter estimates: 
                            bmicat1_v._bmicat0 Estimate (95% CI)
Risk Difference                            0.054 (-0.034, 0.184)
Risk Ratio                                  1.099 (0.940, 1.341)
Odds Ratio                                  1.248 (0.873, 2.240)
Number needed to treat/harm                               18.462
                            bmicat2_v._bmicat0 Estimate (95% CI)
Risk Difference                            0.023 (-0.014, 0.046)
Risk Ratio                                  1.042 (0.975, 1.086)
Odds Ratio                                  1.097 (0.945, 1.203)
Number needed to treat/harm                               43.685
                            bmicat3_v._bmicat0 Estimate (95% CI)
Risk Difference                             0.116 (0.089, 0.161)
Risk Ratio                                  1.211 (1.164, 1.308)
Odds Ratio                                  1.628 (1.447, 1.984)
Number needed to treat/harm                                8.642
> 
> 
> 
> 
> 
> ### * <FOOTER>
> ###
> cleanEx()
> options(digits = 7L)
> base::cat("Time elapsed: ", proc.time() - base::get("ptime", pos = 'CheckExEnv'),"\n")
Time elapsed:  16.57 1.39 18.79 NA NA 
> grDevices::dev.off()
Error in grDevices::dev.off() : failed to load sRGB colorspace file
Execution halted