-
Notifications
You must be signed in to change notification settings - Fork 17
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
Cache location incorrect on Linux #83
Comments
Looks like it can: > tools::R_user_dir("foo", "cache")
# [1] "/Users/ateucher/Library/Caches/org.R-project.R/R/foo"
rappdirs::user_cache_dir("org.R-project.R/R/foo")
# [1] "/Users/ateucher/Library/Caches/org.R-project.R/R/foo" @boshek @stephhazlitt can you check to see if you get the same behaviour on your machines? |
On Ubuntu: > rappdirs::user_cache_dir("org.R-project.R/R/foo")
[1] "/home/salbers/.cache/org.R-project.R/R/foo"
> tools::R_user_dir("foo", "cache")
[1] "/home/salbers/.cache/R/foo" So a little bit different. And then windows: > rappdirs::user_cache_dir("org.R-project.R/R/foo")
[1] "C:\\Users\\salbers\\AppData\\Local\\org.R-project.R\\R\\foo\\org.R-project.R\\R\\foo\\Cache"
> tools::R_user_dir("foo", "cache")
[1] "C:\\Users\\salbers\\AppData\\Local/R/cache/R/foo" |
Ok so then probably for R < 4.0 we just stick to current |
I think that is the approach. My only consideration here is that when a user switches from 3.* to 4.* they will have to re-download all the layers. Do you think it would be worth have a function clean up the files at the 3.* path? |
From CRAN:
We are using
rappdirs::user_data_dir()
, which on Unix uses~/.local/share/<appname>
.Perhaps we should use
tools::R_user_dir()
(R >= 4.0) orrappdirs::user_cache_dir()
which uses~/.local/cache/<appname>
?From the help for
tools::R_user_dir()
, it creates anR
subfolder in the user/cache directory (~/.local/cache/R/<appname>
- hopefullyrappdirs
can do the same for R < 4.0.The text was updated successfully, but these errors were encountered: