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

> ### Name: samp_physig
> ### Title: Sensitivity Analysis Species Sampling - Phylogenetic signal
> ### Aliases: samp_physig
> 
> ### ** Examples
> 
> ## Not run: 
> ##D data(alien)
> ##D alien.data<-alien$data
> ##D alien.phy<-alien$phy
> ##D # Logtransform data
> ##D alien.data$logMass <- log(alien.data$adultMass) 
> ##D # Run sensitivity analysis:
> ##D samp <- samp_physig(trait.col = "logMass", data = alien.data, n.sim = 30,
> ##D phy = alien.phy[[1]])
> ##D summary(samp)
> ##D sensi_plot(samp)
> ##D sensi_plot(samp, graphs = 1)
> ##D sensi_plot(samp, graphs = 2)
> ## End(Not run)
> ## Don't show: 
> data(alien)
> # Logtransform data
> alien.data$logMass <- log(alien.data$adultMass) 
> # Run sensitivity analysis:
> samp <- samp_physig(trait.col = "logMass", data = alien.data, 
+ n.sim = 3, phy = alien.phy[[1]])
Warning in match_dataphy(get(trait.col) ~ 1, data, phy) :
  NA's in response or predictor, rows with NA's were removed
Warning in match_dataphy(get(trait.col) ~ 1, data, phy) :
  Some phylo tips do not match species in data (this can be due to NA removal) species were dropped from phylogeny or data
Used dataset has  92  species that match data and phylogeny

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |=====                                                                 |   7%
  |                                                                            
  |=========                                                             |  13%
  |                                                                            
  |==============                                                        |  20%
  |                                                                            
  |===================                                                   |  27%
  |                                                                            
  |=======================                                               |  33%
  |                                                                            
  |============================                                          |  40%
  |                                                                            
  |=================================                                     |  47%
  |                                                                            
  |=====================================                                 |  53%
  |                                                                            
  |==========================================                            |  60%
  |                                                                            
  |===============================================                       |  67%
  |                                                                            
  |===================================================                   |  73%
  |                                                                            
  |========================================================              |  80%
  |                                                                            
  |=============================================================         |  87%
  |                                                                            
  |=================================================================     |  93%
  |                                                                            
  |======================================================================| 100%
> summary(samp)
 simulations saved, see output$samp.physig.estimates to acess all simulations
  Species Removed (%) Significant K (%) Mean Change (%) Mean sDFestimate
1                  10               100        6.700000        0.1751360
2                  20               100        7.933333       -0.4952415
3                  30               100        9.266667        0.6084136
4                  40               100       19.366667        0.8196565
5                  50               100       20.600000        1.4094796
> sensi_plot(samp)

 *** caught segfault ***
address 0x25, 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(gtable)
15: grid.draw(gtable)
16: print.ggplot(plots[[i]], vp = grid::viewport(layout.pos.row = matchidx$row,     layout.pos.col = matchidx$col))
17: print(plots[[i]], vp = grid::viewport(layout.pos.row = matchidx$row,     layout.pos.col = matchidx$col))
18: multiplot(s1, s3, s2, cols = 2)
19: withCallingHandlers(expr, message = function(c) if (inherits(c,     classes)) tryInvokeRestart("muffleMessage"))
20: suppressMessages(return(multiplot(s1, s3, s2, cols = 2)))
21: sensi_plot.samp.physig(samp)
22: sensi_plot(samp)
An irrecoverable exception occurred. R is aborting now ...