# Run the simulation function skiping the erros and atributing NA if it occurs
RunSimUltimate.push <- function(myWorld, P.extinction, P.speciation,
P.diffusion, P.Arisal, P.TakeOver, nbs, independent,
N.steps, multiplier,
silent = TRUE, start = NULL) {
result <- try(RunSim.push(myWorld, P.extinction, P.speciation,
P.diffusion, P.Arisal, P.TakeOver, nbs,
independent, N.steps,
multiplier, start = start), silent = silent)
if (class(result) == "try-error") {
result <- NA
}
return(result)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.