inbo / etn

R package to access data from the European Tracking Network
https://inbo.github.io/etn/
MIT License
6 stars 5 forks source link

`write_dwc()` returns no data without warning or error #289

Closed peterdesmet closed 5 months ago

peterdesmet commented 11 months ago

When running write_dwc() the resulting file contains no data (only the headers):

library(etn)
con <- connect_to_etn()
data <- write_dwc(con, "2011_RIVIERPRIK")
#> Reading data and transforming to Darwin Core.
#> Writing data to:
#> ./dwc_occurrence.csv
data
#>  [1] type                          license                      
#>  [3] rightsHolder                  datasetID                    
#>  [5] institutionCode               collectionCode               
#>  [7] datasetName                   basisOfRecord                
#>  [9] dataGeneralizations           occurrenceID                 
#> [11] sex                           lifeStage                    
#> [13] occurrenceStatus              organismID                   
#> [15] organismName                  eventID                      
#> [17] parentEventID                 eventDate                    
#> [19] samplingProtocol              eventRemarks                 
#> [21] locationID                    locality                     
#> [23] decimalLatitude               decimalLongitude             
#> [25] geodeticDatum                 coordinateUncertaintyInMeters
#> [27] scientificNameID              scientificName               
#> [29] kingdom                      
#> <0 rows> (or 0-length row.names)

Created on 2023-12-12 with reprex v2.0.2