Package check result: ERROR Check: examples, Result: ERROR Running examples in ‘bamm-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: predict,bam-method > ### Title: Predict method of the package 'bamm'. > ### Aliases: predict,bam-method predict bam-method > > ### ** Examples > > # rm(list = ls()) > # Read raster model for Lepus californicus > model_path <- system.file("extdata/Lepus_californicus_cont.tif", + package = "bamm") > model <- raster::raster(model_path) > # Convert model to sparse > sparse_mod <- bamm::model2sparse(model = model,threshold=0.1) > # Compute adjacency matrix > adj_mod <- bamm::adj_mat(sparse_mod,ngbs=1) > > # Initial points to start dispersal process > > occs_lep_cal <- data.frame(longitude = c(-115.10417, + -104.90417), + latitude = c(29.61846, + 29.81846)) > # Convert to sparse the initial points > occs_sparse <- bamm::occs2sparse(modelsparse = sparse_mod, + occs = occs_lep_cal) > > # Run the bam (sdm) simultation for 100 time steps > smd_lep_cal <- bamm::sdm_sim(set_A = sparse_mod, + set_M = adj_mod, + initial_points = occs_sparse, + nsteps = 10) /home/hornik/tmp/CRAN_special_gcc-san/Library/RcppArmadillo/include/current/armadillo_bits/arrayops_meat.hpp:47:16: runtime error: null pointer passed as argument 1, which is declared to never be null #0 0x7b7bf66cd7f4 in void arma::arrayops::fill_zeros(double*, unsigned long long) /home/hornik/tmp/CRAN_special_gcc-san/Library/RcppArmadillo/include/current/armadillo_bits/arrayops_meat.hpp:47 #1 0x7b7bf66cd7f4 in void arma::arrayops::fill_zeros(double*, unsigned long long) /home/hornik/tmp/CRAN_special_gcc-san/Library/RcppArmadillo/include/current/armadillo_bits/arrayops_meat.hpp:39 #2 0x7b7bf66cd7f4 in arma::Mat::zeros() /home/hornik/tmp/CRAN_special_gcc-san/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:7941 #3 0x7b7bf66cd7f4 in arma::Mat& arma::Mat::fill(arma::fill::fill_class const&) /home/hornik/tmp/CRAN_special_gcc-san/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:7923 #4 0x7b7bf66cd7f4 in arma::Col::Col(unsigned long long, arma::fill::fill_class const&) /home/hornik/tmp/CRAN_special_gcc-san/Library/RcppArmadillo/include/current/armadillo_bits/Col_meat.hpp:171 #5 0x7b7bf66cd7f4 in sdm_sim_rcpp(SEXPREC*, SEXPREC*, SEXPREC*, Rcpp::Vector<14, Rcpp::PreserveStorage> const&, Rcpp::Vector<19, Rcpp::PreserveStorage> const&, int, bool, bool, double, bool) /home/hornik/tmp/CRAN_special_gcc-san/bamm.Rcheck/00_pkg_src/bamm/src/sdm_sim.cpp:119 #6 0x7b7bf66daa43 in _bamm_sdm_sim_rcpp /home/hornik/tmp/CRAN_special_gcc-san/bamm.Rcheck/00_pkg_src/bamm/src/RcppExports.cpp:92 #7 0x7f7c3400e786 in R_doDotCall /home/hornik/src/R/src/main/dotcode.c:790 #8 0x7f7c340134aa in do_dotcall /home/hornik/src/R/src/main/dotcode.c:1437 #9 0x7f7c341919a0 in bcEval_loop /home/hornik/src/R/src/main/eval.c:8132 #10 0x7f7c3417e0ae in bcEval /home/hornik/src/R/src/main/eval.c:7515 #11 0x7f7c34117506 in Rf_eval /home/hornik/src/R/src/main/eval.c:1167 #12 0x7f7c3412cea2 in R_execClosure /home/hornik/src/R/src/main/eval.c:2389 #13 0x7f7c3413185a in applyClosure_core /home/hornik/src/R/src/main/eval.c:2302 #14 0x7f7c34117e15 in Rf_applyClosure /home/hornik/src/R/src/main/eval.c:2324 #15 0x7f7c34117e15 in Rf_eval /home/hornik/src/R/src/main/eval.c:1280 #16 0x7f7c34149c3e in do_set /home/hornik/src/R/src/main/eval.c:3581 #17 0x7f7c3411843c in Rf_eval /home/hornik/src/R/src/main/eval.c:1232 #18 0x7f7c342e289b in Rf_ReplIteration /home/hornik/src/R/src/main/main.c:264 #19 0x7f7c342e289b in R_ReplConsole /home/hornik/src/R/src/main/main.c:317 #20 0x7f7c342e3c32 in run_Rmainloop /home/hornik/src/R/src/main/main.c:1235 #21 0x55bfe82ca0cd in main /home/hornik/src/R/src/main/Rmain.c:29 #22 0x7f7c32633f74 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 #23 0x7f7c32634026 in __libc_start_main_impl ../csu/libc-start.c:360 #24 0x55bfe82ca110 in _start (/home/hornik/tmp/R-d-gcc-xtra/bin/exec/R+0x1110) (BuildId: 71475d20a5cb03490b6a5e00da4d97088592bec3) *** caught segfault *** address (nil), cause 'memory not mapped' Traceback: 1: sdm_sim_rcpp(A = A_sparse, M_orig = M_adj, g0_input = initial_points, suit_values = suit_probs, adj_list = adj_list, nsteps = nsteps, stochastic_dispersal = stochastic_dispersal, disp_prop2_suitability = disp_prop2_suitability, disper_prop = disper_prop, progress_bar = progress_bar) 2: bamm::sdm_sim(set_A = sparse_mod, set_M = adj_mod, initial_points = occs_sparse, nsteps = 10) An irrecoverable exception occurred. R is aborting now ... Segmentation fault Check: tests, Result: ERROR Running ‘spelling.R’ [1s/1s] Running ‘testthat.R’ [35s/35s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(bamm) > > test_check("bamm") Set A of the BAM digram it contains 8 slots @niche_model: a niche model: class : RasterLayer dimensions : 91, 159, 14469 (nrow, ncol, ncell) resolution : 0.2, 0.2 (x, y) extent : -118.4042, -86.60417, 14.51846, 32.71846 (xmin, xmax, ymin, ymax) crs : +proj=longlat +datum=WGS84 +no_defs source : memory names : layer values : 0, 1 (min, max) @suit_threshold: Threshold value used to binarize model@cellIDs: ids of the cells that have values (4281 pixels) @suit_values: Suitability values of the continuous model @sparse_model: A sparse square matrix of 4281 x 4281 entries @coordinates: Pixel centroid coordinates of the model Set M of the BAM digram it contains 7 slots @coordinates: A matrix with longitude and latitude values of each cell of the raster area x y [1,] -115.9042 32.61846 [2,] -115.7042 32.61846 [3,] -115.5042 32.61846 [4,] -115.3042 32.61846 [5,] -115.1042 32.61846 [6,] -114.9042 32.61846 @eigen_val: Eigen values of the connectivity matrix M @eigen_vec: Eigen vector of the connectivity matrix M Object of class csd it contains 3 slots: @connections: Geographic clusters data.frame x y clusterID cluster_size 1 -116.3042 32.41846 1 37 2 -116.7042 32.21846 1 37 3 -116.5042 32.21846 1 37 4 -116.3042 32.21846 1 37 @interactive_map: A leaflet map showing the geographic clusters @raster_map: A raster map of the clusters | | | 0% | |=================================== | 50% | |======================================================================| 100%/home/hornik/tmp/CRAN_special_gcc-san/Library/RcppArmadillo/include/current/armadillo_bits/arrayops_meat.hpp:47:16: runtime error: null pointer passed as argument 1, which is declared to never be null #0 0x7b1e294cd7f4 in void arma::arrayops::fill_zeros(double*, unsigned long long) /home/hornik/tmp/CRAN_special_gcc-san/Library/RcppArmadillo/include/current/armadillo_bits/arrayops_meat.hpp:47 #1 0x7b1e294cd7f4 in void arma::arrayops::fill_zeros(double*, unsigned long long) /home/hornik/tmp/CRAN_special_gcc-san/Library/RcppArmadillo/include/current/armadillo_bits/arrayops_meat.hpp:39 #2 0x7b1e294cd7f4 in arma::Mat::zeros() /home/hornik/tmp/CRAN_special_gcc-san/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:7941 #3 0x7b1e294cd7f4 in arma::Mat& arma::Mat::fill(arma::fill::fill_class const&) /home/hornik/tmp/CRAN_special_gcc-san/Library/RcppArmadillo/include/current/armadillo_bits/Mat_meat.hpp:7923 #4 0x7b1e294cd7f4 in arma::Col::Col(unsigned long long, arma::fill::fill_class const&) /home/hornik/tmp/CRAN_special_gcc-san/Library/RcppArmadillo/include/current/armadillo_bits/Col_meat.hpp:171 #5 0x7b1e294cd7f4 in sdm_sim_rcpp(SEXPREC*, SEXPREC*, SEXPREC*, Rcpp::Vector<14, Rcpp::PreserveStorage> const&, Rcpp::Vector<19, Rcpp::PreserveStorage> const&, int, bool, bool, double, bool) /home/hornik/tmp/CRAN_special_gcc-san/bamm.Rcheck/00_pkg_src/bamm/src/sdm_sim.cpp:119 #6 0x7b1e294daa43 in _bamm_sdm_sim_rcpp /home/hornik/tmp/CRAN_special_gcc-san/bamm.Rcheck/00_pkg_src/bamm/src/RcppExports.cpp:92 #7 0x7f1e6860e786 in R_doDotCall /home/hornik/src/R/src/main/dotcode.c:790 #8 0x7f1e686134aa in do_dotcall /home/hornik/src/R/src/main/dotcode.c:1437 #9 0x7f1e687919a0 in bcEval_loop /home/hornik/src/R/src/main/eval.c:8132 #10 0x7f1e6877e0ae in bcEval /home/hornik/src/R/src/main/eval.c:7515 #11 0x7f1e68717506 in Rf_eval /home/hornik/src/R/src/main/eval.c:1167 #12 0x7f1e6872cea2 in R_execClosure /home/hornik/src/R/src/main/eval.c:2389 #13 0x7f1e6873185a in applyClosure_core /home/hornik/src/R/src/main/eval.c:2302 #14 0x7f1e68717e15 in Rf_applyClosure /home/hornik/src/R/src/main/eval.c:2324 #15 0x7f1e68717e15 in Rf_eval /home/hornik/src/R/src/main/eval.c:1280 #16 0x7f1e68749c3e in do_set /home/hornik/src/R/src/main/eval.c:3581 #17 0x7f1e6871843c in Rf_eval /home/hornik/src/R/src/main/eval.c:1232 #18 0x7f1e6872b6fb in do_begin /home/hornik/src/R/src/main/eval.c:2992 #19 0x7f1e6871843c in Rf_eval /home/hornik/src/R/src/main/eval.c:1232 #20 0x7f1e687517b9 in do_eval /home/hornik/src/R/src/main/eval.c:3955 #21 0x7f1e687919a0 in bcEval_loop /home/hornik/src/R/src/main/eval.c:8132 #22 0x7f1e6877e0ae in bcEval /home/hornik/src/R/src/main/eval.c:7515 #23 0x7f1e68717506 in Rf_eval /home/hornik/src/R/src/main/eval.c:1167 #24 0x7f1e6872cea2 in R_execClosure /home/hornik/src/R/src/main/eval.c:2389 #25 0x7f1e6873185a in applyClosure_core /home/hornik/src/R/src/main/eval.c:2302 #26 0x7f1e68717e15 in Rf_applyClosure /home/hornik/src/R/src/main/eval.c:2324 #27 0x7f1e68717e15 in Rf_eval /home/hornik/src/R/src/main/eval.c:1280 #28 0x7f1e6875275d in do_eval /home/hornik/src/R/src/main/eval.c:3973 #29 0x7f1e687919a0 in bcEval_loop /home/hornik/src/R/src/main/eval.c:8132 #30 0x7f1e6877e0ae in bcEval /home/hornik/src/R/src/main/eval.c:7515 #31 0x7f1e68717506 in Rf_eval /home/hornik/src/R/src/main/eval.c:1167 #32 0x7f1e6872cea2 in R_execClosure /home/hornik/src/R/src/main/eval.c:2389 #33 0x7f1e6873185a in applyClosure_core /home/hornik/src/R/src/main/eval.c:2302 #34 0x7f1e68733146 in Rf_applyClosure /home/hornik/src/R/src/main/eval.c:2324 #35 0x7f1e68733146 in R_forceAndCall /home/hornik/src/R/src/main/eval.c:2456 #36 0x7f1e6835f9f6 in do_lapply /home/hornik/src/R/src/main/apply.c:75 #37 0x7f1e689626d2 in do_internal /home/hornik/src/R/src/main/names.c:1411 #38 0x7f1e68791172 in bcEval_loop /home/hornik/src/R/src/main/eval.c:8152 #39 0x7f1e6877e0ae in bcEval /home/hornik/src/R/src/main/eval.c:7515 #40 0x7f1e68717506 in Rf_eval /home/hornik/src/R/src/main/eval.c:1167 #41 0x7f1e6872cea2 in R_execClosure /home/hornik/src/R/src/main/eval.c:2389 #42 0x7f1e6873185a in applyClosure_core /home/hornik/src/R/src/main/eval.c:2302 #43 0x7f1e68717e15 in Rf_applyClosure /home/hornik/src/R/src/main/eval.c:2324 #44 0x7f1e68717e15 in Rf_eval /home/hornik/src/R/src/main/eval.c:1280 #45 0x7f1e688e289b in Rf_ReplIteration /home/hornik/src/R/src/main/main.c:264 #46 0x7f1e688e289b in R_ReplConsole /home/hornik/src/R/src/main/main.c:317 #47 0x7f1e688e3c32 in run_Rmainloop /home/hornik/src/R/src/main/main.c:1235 #48 0x5613d47310cd in main /home/hornik/src/R/src/main/Rmain.c:29 #49 0x7f1e66c33f74 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 #50 0x7f1e66c34026 in __libc_start_main_impl ../csu/libc-start.c:360 #51 0x5613d4731110 in _start (/home/hornik/tmp/R-d-gcc-xtra/bin/exec/R+0x1110) (BuildId: 71475d20a5cb03490b6a5e00da4d97088592bec3) *** caught segfault *** address (nil), cause 'memory not mapped' Traceback: 1: sdm_sim_rcpp(A = A_sparse, M_orig = M_adj, g0_input = initial_points, suit_values = suit_probs, adj_list = adj_list, nsteps = nsteps, stochastic_dispersal = stochastic_dispersal, disp_prop2_suitability = disp_prop2_suitability, disper_prop = disper_prop, progress_bar = progress_bar) 2: bamm::sdm_sim(set_A = sparse_mod, set_M = adj_mod, initial_points = occs_sparse, nsteps = 10, stochastic_dispersal = TRUE, disp_prop2_suitability = FALSE, disper_prop = 0.5, progress_bar = TRUE) 3: eval(code, test_env) 4: eval(code, test_env) 5: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt) 6: doTryCatch(return(expr), name, parentenv, handler) 7: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 8: tryCatchList(expr, classes, parentenv, handlers) 9: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal) 10: doWithOneRestart(return(expr), restart) 11: withOneRestart(expr, restarts[[1L]]) 12: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { }) 13: test_code(code, parent.frame()) 14: test_that("sdm_sim returns an object of class bam with results from simulation", { model_path <- system.file("extdata/Lepus_californicus_cont.tif", package = "bamm") model <- raster::raster(model_path) sparse_mod <- bamm::model2sparse(model, threshold = 0.05) adj_mod <- bamm::adj_mat(sparse_mod, ngbs = 1) occs_lep_cal <- data.frame(longitude = c(-110.0888, -98.89638), latitude = c(30.43455, 25.19919)) occs_sparse <- bamm::occs2sparse(modelsparse = sparse_mod, occs = occs_lep_cal) expect_error(bamm::sdm_sim(set_A = "a", set_M = adj_mod, initial_points = occs_sparse, nsteps = 10, stochastic_dispersal = TRUE, disp_prop2_suitability = TRUE, disper_prop = 0.5, progress_bar = TRUE)) expect_error(bamm::sdm_sim(set_A = sparse_mod, set_M = "adj_mod", initial_points = occs_sparse, nsteps = 10, stochastic_dispersal = TRUE, disp_prop2_suitability = TRUE, disper_prop = 0.5, progress_bar = TRUE)) sdm_lep_cal <- bamm::sdm_sim(set_A = sparse_mod, set_M = adj_mod, initial_points = occs_sparse, nsteps = 10, stochastic_dispersal = TRUE, disp_prop2_suitability = FALSE, disper_prop = 0.5, progress_bar = TRUE) sdm_lep_cal <- bamm::sdm_sim(set_A = sparse_mod, set_M = adj_mod, initial_points = occs_sparse, nsteps = 10, stochastic_dispersal = FALSE, disp_prop2_suitability = FALSE, disper_prop = 0.5, progress_bar = TRUE) sdm_lep_cal <- bamm::sdm_sim(set_A = sparse_mod, set_M = adj_mod, initial_points = occs_sparse, nsteps = 10, stochastic_dispersal = TRUE, disp_prop2_suitability = TRUE, disper_prop = 0.5, progress_bar = TRUE) expect_s4_class(sdm_lep_cal, "bam") }) 15: eval(code, test_env) 16: eval(code, test_env) 17: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt) 18: doTryCatch(return(expr), name, parentenv, handler) 19: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 20: tryCatchList(expr, classes, parentenv, handlers) 21: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal) 22: doWithOneRestart(return(expr), restart) 23: withOneRestart(expr, restarts[[1L]]) 24: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { }) 25: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new()) 26: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call) 27: FUN(X[[i]], ...) 28: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call) 29: doTryCatch(return(expr), name, parentenv, handler) 30: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 31: tryCatchList(expr, classes, parentenv, handlers) 32: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL}) 33: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)) 34: test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, shuffle = shuffle, error_call = error_call) 35: test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel, shuffle = shuffle) 36: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed") 37: test_check("bamm") An irrecoverable exception occurred. R is aborting now ... Segmentation fault Post-processing issues found: File: bamm-Ex.Rout /home/hornik/tmp/CRAN_special_gcc-san/Library/RcppArmadillo/include/current/armadillo_bits/arrayops_meat.hpp:47:16: runtime error: null pointer passed as argument 1, which is declared to never be null File: tests/testthat.Rout.fail |======================================================================| 100%/home/hornik/tmp/CRAN_special_gcc-san/Library/RcppArmadillo/include/current/armadillo_bits/arrayops_meat.hpp:47:16: runtime error: null pointer passed as argument 1, which is declared to never be null File: 00check.log /home/hornik/tmp/CRAN_special_gcc-san/Library/RcppArmadillo/include/current/armadillo_bits/arrayops_meat.hpp:47:16: runtime error: null pointer passed as argument 1, which is declared to never be null |======================================================================| 100%/home/hornik/tmp/CRAN_special_gcc-san/Library/RcppArmadillo/include/current/armadillo_bits/arrayops_meat.hpp:47:16: runtime error: null pointer passed as argument 1, which is declared to never be null