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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: comboize
> ### Title: combine genetics, isotopes, and habitat raster with exponents as
> ###   given
> ### Aliases: comboize
> 
> ### ** Examples
> 
> # first, run through the example for isotope_posterior_probs() to get
> # the rasters for two migrant birds. This gives us the list "birds2"
> example(isotope_posterior_probs)

istp__> # obtain posterior probability rasters for the first 2 birds in the migrant_wiwa_isotopes
istp__> # data set.  This takes about 15 seconds on my laptop (most of that time is preparatory---once
istp__> # that is done, each bird goes much faster). So we don't run it here.
istp__> ## Not run: 
istp__> ##D birds2 <- isotope_posterior_probs(isoscape = isomap_job54152_prediction,
istp__> ##D                         ref_birds = breeding_wiwa_isotopes,
istp__> ##D                         assign_birds = migrant_wiwa_isotopes[1:2,]
istp__> ##D                         )
istp__> ## End(Not run)
istp__> 
istp__> # However, you can load the results as a saved data object to see what they look like:
istp__> birds2 <- example_isotope_posteriors

istp__> # Since the ref_birds above were separate from the migrant birds, no leave-one-out was
istp__> # performed.  Hence birds2$loo_results is NULL, and all the results are in
istp__> # birds2$regular.
istp__> 
istp__> # Look at the names of the resulting output for the first bird:
istp__> names(birds2$regular[[1]])
[1] "posterior_probs"       "assignment_parameters"

istp__> names(birds2$regular[[1]]$assignment_parameters)
[1] "Tilde_T_mu"      "R_sigma_squared" "a_bar"           "b_bar"          
[5] "sd_indiv"       

istp__> # If you want to do self-assignment for a whole bunch of reference birds, it takes much longer.
istp__> # It looks like this:
istp__> ## Not run: 
istp__> ##D self_ass <- isotope_posterior_probs(isoscape = isomap_job54152_prediction,
istp__> ##D                                     ref_birds = breeding_wiwa_isotopes,
istp__> ##D                                     self_assign = TRUE)
istp__> ## End(Not run)
istp__> 
istp__> 
istp__> 
> 
> # extract the posterior probs rasters from  that output into a raster stack
> miso <- lapply(birds2$regular, function(x) x$posterior_probs) %>%
+   raster::stack()
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/sp/libs/sp.so':
  /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/sp/libs/sp.so: failed to map segment from shared object
Calls: %>% ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted