Skip to content

Empty cache directories are not deleted #1118

@lorenzwalthert

Description

@lorenzwalthert

(On macoS as their directories are reported as zero size):

du -h /Users/ripley/Library/Caches/org.R-project.R/R
0B /Users/ripley/Library/Caches/org.R-project.R/R/dipsaus/file_locks
0B /Users/ripley/Library/Caches/org.R-project.R/R/dipsaus
0B /Users/ripley/Library/Caches/org.R-project.R/R/R.cache/styler/1.9.1
0B /Users/ripley/Library/Caches/org.R-project.R/R/R.cache/styler
0B /Users/ripley/Library/Caches/org.R-project.R/R/renv/sandbox/R-4.4-r84396/aarch64-apple-darwin22.4.0/d88109f6
0B /Users/ripley/Library/Caches/org.R-project.R/R/renv/sandbox/R-4.4-r84396/aarch64-apple-darwin22.4.0
0B /Users/ripley/Library/Caches/org.R-project.R/R/renv/sandbox/R-4.4-r84396
0B /Users/ripley/Library/Caches/org.R-project.R/R/renv/sandbox
0B /Users/ripley/Library/Caches/org.R-project.R/R/renv

The CRAN policy says

"packages may store user-specific data, configuration and cache files in their respective user directories obtained from tools::R_user_dir(), provided that by default sizes are kept as small as possible and the contents are actively managed (including removing outdated material)."

so these empty dirs should have have been removed. For renv this seems to be from some user package, so if this could be encouraged in documentarian that would be good.

For dipsaus and styler, please correct before 2023-06-02 to safely retain your packages on CRAN.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions