Open rafaqz opened 3 years ago
This occurs for a fraction of records, maybe 10% such as Pachycephala inornata and Pachycephala inornata
Giving an error from
process_observations(isolation_taxa, mask_layer, taxapath, throw_errors = TRUE)
When throw_errors = TRUE
throw_errors = TRUE
R> traceback() 16: stop("[", f, "] ", emsg, ..., call. = FALSE) 15: error("as,sf", "coercion failed. You can try coercing via a Spatial* (sp) class") 14: asMethod(object) 13: methods::as(x, "SpatVector") 12: .local(x, ...) 11: terra::vect(shapes) 10: terra::vect(shapes) at observations.R#278 9: shapes_to_raster(orphans, taxon, mask_layer, taxonpath) at observations.R#215 8: write_precluster(obs, taxon, mask_layer, taxapath) at observations.R#54 7: try_taxon_observations(taxon, taxapath, force_download) at observations.R#23 6: process_observations(isolation_taxa, mask_layer, taxapath, throw_errors = TRUE) at prefilter.R.tmp.R#55 5: eval(ei, envir) 4: eval(ei, envir) 3: withVisible(eval(ei, envir)) 2: source(f, ...) 1: nvimcom:::source.and.clean("/home/raf/Work/cesar/risk/GeneticRiskIndex/R/prefilter.R.tmp.R")
This occurs for a fraction of records, maybe 10% such as Pachycephala inornata and Pachycephala inornata
Giving an error from
When
throw_errors = TRUE