-
Notifications
You must be signed in to change notification settings - Fork 1
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
Tests for write dwc #49
Conversation
similar to camtraptor test, redundant there and here with snapshots
consider withr::local_file() or withr::defer()
See discussion in #46
Having some trouble building the vignette because:
don't seem to run consistently, sometimes getting http 502 errors from datarepository.movebank.org |
I've already changed this to urls that I got from inspecting my browser: see here
Are these links more or less stable than:
I suspect the only difference is directly or indirectly calling the api |
Our repository developers recommend a third option:
The links above redirect to these ones. |
The 3rd option: At Peter's request, I've split off the changes to the vignettes to a separate PR #51, currently under review. |
The vignette at https://inbo.github.io/movepub/articles/movepub.html is now updated and makes use of the |
f99a064
to
c492078
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent, will be very helpful when changing the function.
Snapshots seem to have changed, let me know if you need me to look into this. |
|
Fair, but the exact message is not too important here (doesn't affect functionality and file paths are tested elsewhere). I mainly wanted to remove snaps I don't consider necessary
To make it more welcome to other developers (by using the default):
Is easier to understand and less overwhelming than:
|
Alright, the two |
Todo
data package for testing
o_assen
was suggested:However, this example set only includes one taxon as far as I can see. We could consider a different, or second, test dataset.
Todo
Reduce size of testing datawrite_dwc()
write_dwc()
so they can run out of orderwrite_dwc()
so they can run out of order + are easier to reviewRemovestringr
test dependency (test if I can get it to work withgsub()
)testthat::expect_snapshot_file()
in helper, includetestthat::announce_snapshot_file()
to stop auto-delete of expectation whenwrite_dwc_snapshot()
fails (eg. when there is no internet connection)