ropensci / neotoma

Programmatic R interface to the Neotoma Paleoecological Database.
https://docs.ropensci.org/neotoma
Other
30 stars 16 forks source link

`get_download` fails on Refugia Ruin - dataset ID 17817 #203

Closed SimonGoring closed 8 years ago

SimonGoring commented 8 years ago

Running get_download on Refugia Ruin:

A dataset for Refugia Ruin
Accessed 2016-02-18 07:04h. 
 dataset.id    site.name     long     lat   type
      17817 Refugia Ruin -110.885 33.5375 pollen

fails with the error message:

 Error in `colnames<-`(`*tmp*`, value = c("taxon.name", "variable.units",  : 
  'names' attribute [8] must be the same length as the vector [1]
SimonGoring commented 8 years ago

This dataset is the result of an incomplete upload to the Neotoma Paleoecological Database. It failed because it contained some information, but contained no samples. This issue is resolved in two ways:

  1. The dataset itself has been removed from Neotoma
  2. Commit https://github.com/ropensci/neotoma/commit/733c1c836868c8474e76d494968776c34f35703c helps deal with empty datasets by providing a warning and returning NULL. This is as opposed to returning a download with no sample data.