tests/testthat/test-geographic_functions.R

# test for the geographic functions


context("pbdb_map_occur")
test_that("tests on pbdb_map_occur", {

	##missing coordinates
  
	data<-  pbdb_occurrences (limit="100", vocab="pbdb",
                            base_name="Canis")
	expect_error(pbdb_map_occur (data))
})

context("pbdb_map_richness")
test_that("tests on pbdb_map_richness", {
    
    ##missing coordinates
    data<-  pbdb_occurrences (limit="100", vocab="pbdb", base_name="canis")
    expect_error(pbdb_map_richness (data))
})

Try the paleobioDB package in your browser

Any scripts or data that you put into this service are public.

paleobioDB documentation built on July 26, 2020, 1:07 a.m.