Is it safe to delete R packages?

~/Library/R · Check first

What it is

R packages you installed, per R version.

Can you delete it?

Sometimes, check what is inside first. They can be reinstalled, but analyses may rely on exact versions.

How to clean it safely

  1. Remove folders for old R versions you no longer use.

How big is it on your Mac?

This read-only command prints its size and changes nothing:

 Terminal
du -sh ~/"Library/R" 2>/dev/null

Step-by-step guide: Developer caches on a Mac →

Questions

Is it safe to delete ~/Library/R?

Sometimes, check what is inside first. They can be reinstalled, but analyses may rely on exact versions.

Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.

Download for Mac