Running examples in ‘HistogramTools-Ex.R’ failed
The error occurred in:


R Under development (unstable) (2018-01-07 r74091) -- "Unsuffered Consequences"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> pkgname <- "HistogramTools"
> source(file.path(R.home("share"), "R", "examples-header.R"))
> options(warn = 1)
> base::assign(".ExTimings", "HistogramTools-Ex.timings", pos = 'CheckExEnv')
> base::cat("name\tuser\tsystem\telapsed\n", file=base::get(".ExTimings", pos = 'CheckExEnv'))
> base::assign(".format_ptime",
+ function(x) {
+   if(!is.na(x[4L])) x[1L] <- x[1L] + x[4L]
+   if(!is.na(x[5L])) x[2L] <- x[2L] + x[5L]
+   options(OutDec = '.')
+   format(x[1L:3L], digits = 7L)
+ },
+ pos = 'CheckExEnv')
> 
> ### * </HEADER>
> library('HistogramTools')
Warning: S3 methods ‘[.aareg’, ‘[.Surv’, ‘[.cox.zph’, ‘[.coxph.penalty’, ‘[.ratetable’, ‘[.ratetable2’, ‘[.survfit’, ‘[.survfitms’, ‘[.tcut’, ‘Math.Surv’, ‘Math.ratetable’, ‘Ops.Surv’, ‘Ops.ratetable’, ‘Summary.Surv’, ‘anova.coxph’, ‘anova.coxphlist’, ‘anova.survreg’, ‘anova.survreglist’, ‘as.character.Surv’, ‘as.data.frame.Surv’, ‘as.matrix.ratetable’, ‘as.matrix.Surv’, ‘attrassign.default’, ‘attrassign.lm’, ‘extractAIC.coxph.penal’, ‘dim.survfit’, ‘dim.survfitms’, ‘format.Surv’, ‘is.na.Surv’, ‘is.na.coxph.penalty’, ‘is.na.ratetable’, ‘labels.survreg’, ‘levels.tcut’, ‘lines.aareg’, ‘lines.survexp’, ‘lines.survfit’, ‘logLik.coxph’, ‘logLik.survreg’, ‘makepredictcall.pspline’, ‘model.frame.coxph’, ‘model.frame.survreg’, ‘model.matrix.coxph’, ‘model.matrix.survreg’, ‘plot.aareg’, ‘plot.cox.zph’, ‘plot.survfit’, ‘p [... truncated]
Error: package or namespace load failed for ‘HistogramTools’ in find.package(package, lib.loc, verbose = verbose):
 there is no package called ‘survival’
Execution halted