Remove all installed packages in a project

Hi all,

I bloated a project by installing too many packages, not all of which are actually necessary for the analysis. How can I remove all installed packages? Of course I want to keep all the other files composing my project (R scripts, RMarkdown script, .bib file, etc.). Thanks!

Something like this?

remove.packages(pkgs=row.names(x=installed.packages(priority="NA")))
2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.