Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
peterdesmet opened this issue Dec 12, 2023 · 0 comments
Open

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

peterdesmet opened this issue Dec 12, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@peterdesmet
Copy link
Member

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

@peterdesmet peterdesmet added the bug Something isn't working label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant