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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: rmap_save_map
> ### Title: Save maps
> ### Aliases: rmap_save_map
> ###   rmap_save_map,rmapConnection,missing,missing,missing,missing,missing-method
> ###   rmap_save_map,rmapConnection,missing,missing,missing,character,character-method
> ###   rmap_save_map,rmapConnection,character,character,character,missing,character-method
> ###   rmap_save_map,rmapConnection,character,character,character,character,character-method
> ###   rmap_save_map,rmapConnection,function,character,character,missing,character-method
> ###   rmap_save_map,rmapConnection,function,character,character,character,character-method
> ###   rmap_save_map,rmapConnection,function,character,ANY,missing,character-method
> ###   rmap_save_map,rmapConnection,function,character,ANY,character,character-method
> ###   rmap_save_map,rmapConnection,character,Raster,missing,missing,character-method
> 
> ### ** Examples
> 
> require(rangeMapper)
> require(data.table)
Loading required package: data.table

Attaching package: ‘data.table’

The following object is masked from ‘package:base’:

    %notin%

> con = rmap_connect()
> wrens = read_wrens()
> rmap_add_ranges(con, x = wrens, ID = 'sci_name')
> rmap_prepare(con, 'hex', cellsize=500)
 --> Making hex canvas ...done.
    (i) The canvas has 576 cells.
 --> Processing 84 ranges ... --> Updating rmap_nfo & rmap_master tables ...done.
    (i) Finished in 0.359s elapsed (0.209s cpu)
> rmap_save_map(con) # default is a species_richness map.
> 
> rmap_add_bio(con, wrens, 'sci_name')
> rmap_save_map(con, fun='avg', src='wrens',v='body_mass', dst='avg_bodymass')
> 
> rmap_save_subset(con,dst ='ss1', species_richness = 'species_richness > 10')
Error in `[.data.table`(W, type == "map", `:=`(joinCall, paste("JOIN",  : 
  attempt access index 5/5 in VECTOR_ELT
Calls: rmap_save_subset -> rmap_save_subset -> [ -> [.data.table
Execution halted