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

> ### Name: local_covariance_matrix
> ### Title: Computation of Local Covariance Matrices
> ### Aliases: local_covariance_matrix
> 
> ### ** Examples
> 
> # simulate coordinates
> coords <- runif(1000 * 2) * 20
> dim(coords) <- c(1000, 2)
> 
> # simulate random field
> if (!requireNamespace('RandomFields', quietly = TRUE)) {
+   message('Please install the package RandomFields to run the example code.')
+ } else {
+   RandomFields::RFoptions(spConform = FALSE)
+   field_1 <- RandomFields::RFsimulate(model = RandomFields::RMexp(), 
+                                       x = coords)
+   field_2 <- RandomFields::RFsimulate(model = RandomFields::RMspheric(), 
+                                       x = coords)
+   field_3 <- RandomFields::RFsimulate(model = RandomFields::RMwhittle(nu = 2),  
+                                       x = coords)
+   field <- cbind(field_1, field_2, field_3)
+ 
+   # computing two ring kernel matrices and corresponding local covariance matrices
+   kernel_params_ring <- c(0, 0.5, 0.5, 2)
+   ring_kernel_list <- 
+     spatial_kernel_matrix(coords, 'ring', kernel_params_ring)
+   loc_cov_ring <- 
+     local_covariance_matrix(x = field, kernel_list = ring_kernel_list)
+     
+   # computing two ring kernel matrices and corresponding local difference matrices
+   kernel_params_ring <- c(0, 0.5, 0.5, 2)
+   ring_kernel_list <- 
+     spatial_kernel_matrix(coords, 'ring', kernel_params_ring)
+   loc_cov_ring <- 
+     local_covariance_matrix(x = field, kernel_list = ring_kernel_list, lcov = 'ldiff')
+   
+   # computing three ball kernel matrices and corresponding local covariance matrices
+   kernel_params_ball <- c(0.5, 1, 2)
+   ball_kernel_list <- 
+     spatial_kernel_matrix(coords, 'ball', kernel_params_ball)
+   loc_cov_ball <- 
+     local_covariance_matrix(x = field, kernel_list = ball_kernel_list)
+   
+   # computing three gauss kernel matrices and corresponding local covariance matrices
+   kernel_params_gauss <- c(0.5, 1, 2)
+   gauss_kernel_list <- 
+     spatial_kernel_matrix(coords, 'gauss', kernel_params_gauss)
+   loc_cov_gauss <- 
+     local_covariance_matrix(x = field, kernel_list = gauss_kernel_list)
+ }

 *** caught segfault ***
address (nil), cause 'unknown'

Traceback:
 1: RandomFieldsUtils::RFoptions()
 2: internal.rfoptions(xyz_notation = length(y) != 0, expected_number_simu = n,     ..., RELAX = !missing(model) && is(model, "formula"))
 3: RandomFields::RFsimulate(model = RandomFields::RMexp(), x = coords)
An irrecoverable exception occurred. R is aborting now ...