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

> ### Name: setModification
> ### Title: Return a copy of the table with the given modification function
> ###   added
> ### Aliases: setModification setModification,mortalityTable-method
> 
> ### ** Examples
> 
> mortalityTables.load("Austria_Census")
> # Austrian census mortality 2011, with a lower floor of 0.1% death probability
> at11.mod1perm = setModification(mort.AT.census.2011.male,
+     modification = function(qx) {pmax(qx, 0.001)})
> at11.mod1perm@name = paste(at11.mod1perm@name, "at least 0.1%")
> # Austrian census mortality 2011, modified with 40% selection for ages
> # below 60, vanishing linearly to age 80
> at11.modSelection = setModification(mort.AT.census.2011.male,
+     modification = function(qx) {
+         qx * c(rep(0.6, 60), 0.6 + 0.4 * (0:20)/20, rep(1, length(qx)-81))
+     })
> at11.modSelection@name = paste(at11.modSelection@name, " 40% selection below 60")
> 
> plot(mort.AT.census.2011.male, at11.mod1perm, at11.modSelection,
+     title = "Austrian census mortality with modifications", legend.position = c(0.99, 0.01))

 *** caught segfault ***
address 0xffffffc0, 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(x)
29: (function (x, ...) UseMethod("print"))(x)
An irrecoverable exception occurred. R is aborting now ...