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

CRAN doesn't allow us to use rappdirs::user_cache_dir() #27

Closed
mrcaseb opened this issue Aug 16, 2023 · 0 comments · Fixed by #29
Closed

CRAN doesn't allow us to use rappdirs::user_cache_dir() #27

mrcaseb opened this issue Aug 16, 2023 · 0 comments · Fixed by #29

Comments

@mrcaseb
Copy link
Member

mrcaseb commented Aug 16, 2023

With v1.0.3 we released code to CRAN that creates a user cache directory using rappdirs. We received this lovely mail a couple days later

This uses ~/.cache/nfl4th (and /Users/ripley/Library/Caches/nfl4th on
macOS). That is prohibited under the CRAN policy with which you have
just warranted compliance.
The package is now scheduled for archival on 2023-08-29, and this will
necessitate archiving its CRAN strong reverse dependency, nflverse.
--
Brian D. Ripley, ripley@stats.ox.ac.uk
Emeritus Professor of Applied Statistics, University of Oxford

This is a known issue, see r-lib/rappdirs#27 and r-lib/rappdirs#40
So now we are forced to switch over to tools:: R_user_dir() which is problematic because it was introduced with R4.0.0.
The solution is to use the backports package with R versions < 4.0

Fun fact: even the freakin .Rd file of tools:: R_user_dir() claims, that rappdirs works fine.
image

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 a pull request may close this issue.

1 participant