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

> ### Name: soil texture and hydraulics
> ### Title: Soil texture and hydraulics
> ### Aliases: soil_psi2thetaSX soil_psi2thetaVG soil_psi soil_theta2psiSX
> ###   soil_theta2psiVG soil_thetaFC soil_thetaWP soil_thetaSAT
> ###   soil_thetaSATSX soil_theta soil_water soil_waterFC soil_waterWP
> ###   soil_waterExtractable soil_waterSAT soil_USDAType
> ###   soil_saturatedConductivitySX soil_vanGenuchtenParamsCarsel
> ###   soil_vanGenuchtenParamsToth soil_waterTableDepth
> ###   soil_retentionCurvePlot soil_rockWeight2Volume
> 
> ### ** Examples
> 
> 
> #Determine USDA soil texture type
> type = soil_USDAType(clay=40, sand=10)
> type
[1] "Silty clay"
> 
> #Van Genuchten's params (bulk density = 1.3 g/cm)
> vg = soil_vanGenuchtenParamsToth(40,10,1,1.3,TRUE)
> vg
    alpha         n theta_res theta_sat 
92.643194  1.249553  0.041000  0.484241 
> 
> # Initialize soil object with default params
> s = soil(defaultSoilParams())
> 
> # Plot Saxton's and Van Genuchten's water retention curves
> soil_retentionCurvePlot(s, model="both")

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