-
Notifications
You must be signed in to change notification settings - Fork 3
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
Inherit parsing issues #282
Conversation
Improving tests at the moment... |
Still getting failing check on Ubuntu-latest (3.6.3). It's an issue with the installation of terra package. @PietrH; if you agree, I would remove (temporarily?) this check. We have already a windows-latest (3.6.0) check to ensure compatibility with R 3.6.x. |
edit: resolved
Lines 464 to 471 in d79224f
We use |
It seems to be fixed in the current development build of terra: rspatial/terra#1276, I didn't check on my system as I don't have R3.6.x installed at the moment. They were using the new anonymous functions introduced in R4.1, although it surprises me that our tests passed on Windows 3.6.0 Originally I was thinking about a problem with different line breaks between Linux and Windows, similar to: https://stackoverflow.com/questions/56471638/error-unable-to-collate-and-parse-r-files-for-package-upload-to-cran In principle I don't protest removing the check on Ubuntu, however, are should make sure we aren't accidentally (re-)discovering a lingering issue in terra. |
init object if you are going to use it, or alternatively create it outside of a test in the beginning of this file.
…from individual tests
Some things I fixed in commits:
in |
…this message in tests
One final comment: I'm having some trouble with this test: camtraptor/tests/testthat/test-read_camtrap_dp.R Lines 303 to 319 in 1b749cd
However the documentation https://search.r-project.org/CRAN/refmans/lifecycle/html/deprecate_soft.html mentions the namespace declaration as optional. @damianooldoni , could you have a look at this test to see if to works as intended? |
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.
- I made some small changes, see the comments above.
- I'm having trouble verifying if the deprecation test works as indented. Comment above.
- Don't forget to use testtthat convenience functions like expect_length and expect_type, they are easier to read and sometimes have other advantages too.
- Great job, looks great. This test is getting quite big! Thank you for tackling this
Thanks @PietrH for your extended review and actively pushing! @PietrH: I think we could include this work in the next release. I see you mentioned this PR in #282. As #282 is much more urgent than this patch work I would proceed as following:
|
This should avoid returning an error while running covr as found by @PietrH. Co-Authored-By: Pieter Huybrechts <[email protected]>
Co-Authored-By: Pieter Huybrechts <[email protected]>
Co-Authored-By: Pieter Huybrechts <[email protected]>
Co-Authored-By: Pieter Huybrechts <[email protected]>
Replies to #282
Yes, it's correct. However, by restarting R, you should be able to get the warning again.
|
Thanks @PietrH for your in depth review and for improving the coding and the quality of the tests. @peterdesmet and @PietrH: I didn't add anything on
I would first finalize the more important PR #289, then pulling the changes in main into this PR. I don't expect any conflict this time as PR #289 didn't modify anything related to |
This PR is quite small and is a small patch to solve a small bug noticed by @jimcasaer. While reading a datapackage, a warning about parsing issues in deployments was returned on screen. However, nothing was returned by
readr::problems(dp$data$deployments)
.The reason? While working on v0.20 I removed by accident the few lines of code where I assigned reading issues of deployments and media to the attributes of the corresponding data.frames.