ropensci / rfishbase

R interface to the fishbase.org database
https://docs.ropensci.org/rfishbase
111 stars 40 forks source link

occurrence route doesn't exist anymore #100

Closed sckott closed 8 years ago

sckott commented 8 years ago

via email

occurrence("Oncorhynchus mykiss")
#> Source: local data frame [0 x 0]
#> 
#> Warning messages:
#> 1: In check_and_parse(resp) : Bad Request (HTTP 400).
#> 2: In error_checks(parsed, resp = resp) :
#>   Mysql2::Error: Table 'fbapp.occurrence' doesn't exist: SHOW FULL FIELDS FROM `occurrence` for #> query https://fishbase.ropensci.org/occurrence?SpecCode=239&limit=200
sckott commented 8 years ago

@cboettig yeah, the occurrence table is gone in the new new SQL DB

I assume we should drop that route, and corresponding fxn in this pkg?

cboettig commented 8 years ago

Yup. Maybe include a warning for now "this table is no longer available in the FishBase API"? Guess we should write to Ranier and ask about the change

sckott commented 8 years ago

yeah, or rather a stop message?

sckott commented 8 years ago

sealifebase has occurrence table, but it's apparently empty, so I guess we can treat them the same essentially