Running ‘iteratorTest.R’ [13s/13s]
  Running ‘test_QuadApprox.R’
  Running ‘test_sim_ana.R’ [9s/10s]
  Running ‘test_survspat.R’ [9s/11s]
Running the tests in ‘tests/test_sim_ana.R’ failed.
Complete output:
  > library(spatsurv)
  
   Welcome to 'spatsurv': Spatial Survival Analysis
   B. M. Taylor & B. S. Rowlingson.
  
  Type 'spatsurvVignette()' to view the package vignette.
  
  Type 'citation("spatsurv")' to view the citation for this package.
  
  Please see the spatsurv package NEWS file for latest additions, changes and bug fixes.
  > library(survival)
  > 
  > set.seed(10)
  > 
  > dat <- simsurv(mcmc.control=mcmcpars(nits=100,burn=10,thin=9),dist=exponentialHaz())
  
   *** caught segfault ***
  address (nil), cause 'unknown'
  
  Traceback:
   1: RandomFieldsUtils::RFoptions(...)
   2: RFoptions()
   3: CovarianceFct(x = u, param = c(mean = 0, variance = sigma^2,     nugget = 0, scale = phi, pars), model = model)
   4: withCallingHandlers(expr, warning = function(w) if (inherits(w,     classes)) tryInvokeRestart("muffleWarning"))
   5: suppressWarnings(CovarianceFct(x = u, param = c(mean = 0, variance = sigma^2,     nugget = 0, scale = phi, pars), model = model))
   6: getcov(u = u, sigma = parameters[1], phi = parameters[2], model = cov.model$model,     pars = cov.model$pars)
   7: EvalCov(cov.model, u = u, parameters = cov.parameters)
   8: matrix(EvalCov(cov.model, u = u, parameters = cov.parameters),     n, n)
   9: simsurv(mcmc.control = mcmcpars(nits = 100, burn = 10, thin = 9),     dist = exponentialHaz())
  An irrecoverable exception occurred. R is aborting now ...
Running the tests in ‘tests/test_survspat.R’ failed.
Complete output:
  > library(spatsurv)
  
   Welcome to 'spatsurv': Spatial Survival Analysis
   B. M. Taylor & B. S. Rowlingson.
  
  Type 'spatsurvVignette()' to view the package vignette.
  
  Type 'citation("spatsurv")' to view the citation for this package.
  
  Please see the spatsurv package NEWS file for latest additions, changes and bug fixes.
  > library(sp)
  > library(spatstat.core)
  Loading required package: spatstat.data
  Loading required package: spatstat.geom
  spatstat.geom 2.3-0
  Loading required package: nlme
  Loading required package: rpart
  spatstat.core 2.3-1
  > library(survival)
  > 
  > par(mfrow=c(1,1))
  > 
  > set.seed(10)
  > 
  > n <- 100
  > DIST <- exponentialHaz()
  > 
  > 
  > OMEGA <- 1
  > 
  > 
  > 
  > # Generate spatially correlated survival data ...
  > dat <- simsurv(X=cbind( age=runif(n,5,50),sex=rbinom(n,1,0.5),cancer=rbinom(n,1,0.2)),
  +                         dist=DIST,
  +                         omega=OMEGA,
  +                         mcmc.control=mcmcpars(nits=100,burn=10,thin=10))
  
   *** caught segfault ***
  address (nil), cause 'unknown'
  
  Traceback:
   1: RandomFieldsUtils::RFoptions(...)
   2: RFoptions()
   3: CovarianceFct(x = u, param = c(mean = 0, variance = sigma^2,     nugget = 0, scale = phi, pars), model = model)
   4: withCallingHandlers(expr, warning = function(w) if (inherits(w,     classes)) tryInvokeRestart("muffleWarning"))
   5: suppressWarnings(CovarianceFct(x = u, param = c(mean = 0, variance = sigma^2,     nugget = 0, scale = phi, pars), model = model))
   6: getcov(u = u, sigma = parameters[1], phi = parameters[2], model = cov.model$model,     pars = cov.model$pars)
   7: EvalCov(cov.model, u = u, parameters = cov.parameters)
   8: matrix(EvalCov(cov.model, u = u, parameters = cov.parameters),     n, n)
   9: simsurv(X = cbind(age = runif(n, 5, 50), sex = rbinom(n, 1, 0.5),     cancer = rbinom(n, 1, 0.2)), dist = DIST, omega = OMEGA,     mcmc.control = mcmcpars(nits = 100, burn = 10, thin = 10))
  An irrecoverable exception occurred. R is aborting now ...