AtlasOfLivingAustralia / ALA4R

Access data and resources hosted by the Atlas of Living Australia (ALA)
https://atlasoflivingaustralia.github.io/ALA4R/
42 stars 8 forks source link

occurrences failing due to no citation.csv #12

Closed johnbaums closed 9 years ago

johnbaums commented 9 years ago

It seems that citation.csv is no longer included in the archives downloaded by occurrences, and so the following (in occurrences) triggers an error:

xc = read.table(unz(thisfile, "citation.csv"), header = TRUE, 
        comment.char = "", as.is = TRUE)

E.g.:

occurrences('Acacia kingiana', download_reason_id=10)
## Please use (fixed|coll|regex)(x, ignore_case = TRUE) instead of ignore.case(x)
## Please use (fixed|coll|regex)(x, ignore_case = TRUE) instead of ignore.case(x)
## Error in open.connection(file, "rt") : cannot open the connection
## In addition: Warning messages:
##   1: closing unused connection 7 (C:\Users\John\AppData\Local\Temp\RtmpAtgTb8/54bb20636a2fef42b96ca50024152010:citation.csv) 
## 2: In open.connection(file, "rt") :
##   cannot locate file 'citation.csv' in zip file 'C:\Users\John\AppData\Local\Temp\RtmpAtgTb8/3b7d4c346db6d4687a8f00515ed42c98'
raymondben commented 9 years ago

Hmmm, odd, I don't get the same error. Can you paste the output of sessionInfo() please?

johnbaums commented 9 years ago

Seems to be working again - sorry...

johnbaums commented 9 years ago

I was also getting some odd errors re ala-rufus.it.csiro.au not responding. I've started a new session and things are working as expected... may be coincidental though because I had a couple of colleagues (here and elsewhere) test it as well. Anyway - all seems ok. :)

raymondben commented 9 years ago

I'll blame the ALA servers! But I might wrap the citation.csv-related code in a try block anyway, so future failures don't bring the whole show to a halt. Thanks - B