如何卸载带有所有包、设置和其他所有内容的 R 和 RStudio? [英] How to uninstall R and RStudio with all packages, settings and everything else?

查看:211
本文介绍了如何卸载带有所有包、设置和其他所有内容的 R 和 RStudio?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搞砸了,tidyverse 有问题.试图找到解决方案,但花了很多时间没有结果.

如何卸载 R 和 RStudio 以及 Windows 上的所有包、设置和其他所有内容.我尝试通过 Windows 卸载菜单进行卸载,在我再次安装 R 和 RStudio 之后,出现了与之前安装相同的包.如何删除与 R 和 RStudio 相关的所有内容,以便重新安装?

How to uninstall R and RStudio with all packages, settings and everything else on Windows. I tried to uninstall through Windows uninstall menu and after I installed R and RStudio again same packages appeared as they were installed before. How can I erase everything related to R and RStudio so I be able to make a fresh install?

推荐答案

我对上一个答案还有其他问题.出于这个原因,我通过以下步骤(我目前经历的)扩展了答案:

I have further issues with the previous answer. For that reason, I have extended the answer with further steps (which I experienced currently) as below:

  1. 从 Windows程序和功能"卸载 R、RStudio 和 RTools菜单.

  1. Uninstall R, RStudio and RTools from Windows "Programs and Features" menu.

删除在 R 中运行 .libPaths() 指令后显示的文件夹中的所有内容,以了解 R 包的安装位置.就我而言,它看起来像:

Delete everything in folders that was shown after running .libPaths() instruction in R to know where R packages are installed. In my case, it looks like:

.libPaths()

.libPaths()

1 "C:/Users/%USERNAME%/Documents/R/win-library/3.6"C:/Program Files/R/R-3.6.3/library"

1 "C:/Users/%USERNAME%/Documents/R/win-library/3.6" "C:/Program Files/R/R-3.6.3/library"

因此,我也手动删除了以下文件和文件夹(完全卸载 R、RStudio 和 RTools 后它们仍然存在):

Therefore, I have manually deleted following files and folders (they remain there after full uninstallation of R, RStudio and RTools) as well:

- C:Users\%USERNAME%DocumentsR
- C:Users\%USERNAME%Documents.Rhistory
- Various files and folders under C:Users\%USERNAME%AppDataLocalTemp related with R and RStudio sessions.

  1. 删除 C:Users\%USERNAME%AppDataLocalRStudio-Desktop 中的所有内容

删除 C:Users\%USERNAME%AppDataLocal studio 中的所有内容

然后您可以按照以下方式继续重新安装 R(建议重新启动 Windows 后).按顺序(请):下载 R for WindowsRStudio 桌面.(如果需要,也可以下载RTools)

Then you can move on the re-installation side for R (after suggested reboot of Windows) as below. In order (please): Download R for Windows and RStudio Desktop. (If you need, download also RTools)

  • 安装 R
  • 安装 RTools(如果需要)
  • 安装 RStudio.

这篇关于如何卸载带有所有包、设置和其他所有内容的 R 和 RStudio?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆