Conversation
|
When I run tests locally, some files get removed, but I won't commit those changes |
|
It'd be helpful to have more info or examples of other ways the authors field can look besides using |
|
I'm thinking it would be best to save ORCID and ROR validation for a separate PR and review this as-is (just checking that the IDs exist). |
|
@Aariq Sorry for the inconvenience, but you need to please merge the recent changes to "main" into your PR to update the snapshot test results 👍 |
|
I did run |
|
Thanks @Aariq. There seems to be a problem where you call this line: authors <- authors [!is_institution (authors)]which then calls is_institution <- function (person) {
is.null (person$family) & person$role %in% c ( "cph", "fnd")
}But |
|
I think that fixes it |
|
Thanks @Aariq, I think you just need to update the snapshot results again: testthat::test_local()
testthat::snapshot_review("pkgcheck/")
testthat::snapshot_review("extra-checks/")Accept all changes there, plus update number of checks in https://github.com/ropensci-review-tools/pkgcheck/blob/main/tests/testthat/test-list-checks.R to 24, because one more has been merged in the meantime. Then we should be good. Thanks for all the work! |
|
I get different failing tests locally than on GitHub actions and there are a bunch of unused snapshots that get deleted. Both Is it OK to commit these changes? |
|
Nevermind, I've got all passing tests now after |
|
It won't pass until you've committed the updated snapshots to the PR. Also note that I'll be away for a week or so after today, but straight back on to it after that. |
|
I think I'm a bit stuck here. I finally realized that the issue was that those snapshot tests are usually skipped on macOS (my OS), so I need to un-skip them to update the snapshots. However, when I run the test, I get an error:
I've installed pandoc, and I can't reproduce that error if I step through the test interactively (but this also doesn't save the snapshot). Any ideas? It would be easier to work on this package if any necessary snapshot tests were run on all OS, at least locally. |
Draft PR to address #214
TODO:
Authors@RinDESCRIPTION#244). Maybe not a safe assumption?