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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: pROC-package
> ### Title: pROC
> ### Aliases: pROC-package pROC
> ### Keywords: package univar nonparametric utilities print htest aplot
> ###   hplot roc
> 
> ### ** Examples
> 
> data(aSAH)
> 
> ## Build a ROC object and compute the AUC ##
> roc1 <- roc(aSAH$outcome, aSAH$s100b)
Setting levels: control = Good, case = Poor
Setting direction: controls < cases
> print(roc1)

Call:
roc.default(response = aSAH$outcome, predictor = aSAH$s100b)

Data: aSAH$s100b in 72 controls (aSAH$outcome Good) < 41 cases (aSAH$outcome Poor).
Area under the curve: 0.7314
> 
> # With a formula
> roc(outcome ~ s100b, aSAH)
Setting levels: control = Good, case = Poor
Setting direction: controls < cases

Call:
roc.formula(formula = outcome ~ s100b, data = aSAH)

Data: s100b in 72 controls (outcome Good) < 41 cases (outcome Poor).
Area under the curve: 0.7314
> # With pipes, dplyr-style:
> ## Not run: 
> ##D library(dplyr)
> ##D aSAH %>% roc(outcome, s100b)
> ## End(Not run)
> 
> # Create a few more curves for the next examples
> roc2 <- roc(aSAH$outcome, aSAH$wfns)
Setting levels: control = Good, case = Poor
Setting direction: controls < cases
> roc3 <- roc(aSAH$outcome, aSAH$ndka)
Setting levels: control = Good, case = Poor
Setting direction: controls < cases
> 
> 
> ## AUC ##
> auc(roc1, partial.auc = c(1, .9))
Partial area under the curve (specificity 1-0.9): 0.03276
> 
> 
> ## Smooth ROC curve ##
> smooth(roc1)

Call:
smooth.roc(roc = roc1)

Data: aSAH$s100b in 72 controls (aSAH$outcome Good) < 41 cases (aSAH$outcome Poor).
Smoothing: binormal 
Area under the curve: 0.74
> 
> 
> ## Summary statistics
> var(roc1)
[1] 0.002668682
> cov(roc1, roc3)
[1] -0.0007561649
> 
> 
> ## Plot the curve ##
> plot(roc1)
> 
> #  More plotting options, CI and plotting
> # with all-in-one syntax:
> roc4 <- roc(aSAH$outcome,
+             aSAH$s100b, percent=TRUE,
+             # arguments for auc
+             partial.auc=c(100, 90), partial.auc.correct=TRUE,
+             partial.auc.focus="sens",
+             # arguments for ci
+             ci=TRUE, boot.n=100, ci.alpha=0.9, stratified=FALSE,
+             # arguments for plot
+             plot=TRUE, auc.polygon=TRUE, max.auc.polygon=TRUE, grid=TRUE,
+             print.auc=TRUE, show.thres=TRUE)
Setting levels: control = Good, case = Poor
Setting direction: controls < cases
Error in text.default(print.auc.x, print.auc.y, labels, adj = print.auc.adj,  : 
  conversion failure on 'Partial AUC: 54.6% (49.1%–66.2%)' in 'mbcsToSbcs': for –
Calls: roc -> roc.default -> plot.roc -> plot.roc.roc
Execution halted