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

Fix tests #23

Merged
merged 2 commits into from
Jan 22, 2024
Merged

Fix tests #23

merged 2 commits into from
Jan 22, 2024

Conversation

stitam
Copy link
Contributor

@stitam stitam commented Jan 22, 2024

CRAN maintainers notified me about check errors:
https://cran.r-project.org/web/checks/check_results_hoardr.html

I'm not 100% sure what caused the issue, it seems unlink() did not delete the cache directory when I ran tests using devtools::test(). Strange behaviour though, dir.exists(cache_dir) returned FALSE, but file.exists(cache_dir) returned TRUE.

This PR updates cache dir full path in test-HoardClient.R line 35 from tempdir() to a subdirectory of tempdir() which fixes the issue. I also upgraded testthat to edition 3.

I'll merge this PR and issue a patch release to keep the package from being archived on CRAN.

@stitam stitam merged commit 928ea81 into ropensci:master Jan 22, 2024
5 checks passed
@stitam stitam deleted the tests branch January 22, 2024 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant