[英]how to uninstall (or fix) R-devel?
I install the R-devel about a year ago and today I wanted to update to the current version. 我大约一年前安装了R-devel,今天我想更新到当前版本。 I installed and updated using instructions from here: http://singmann.org/installing-r-devel-on-linux/
我使用此处的说明进行安装和更新: http : //singmann.org/installing-r-devel-on-linux/
However, I am getting the following error messages. 但是,我收到以下错误消息。 Any help please?
有什么帮助吗?
Error: package or namespace load failed for ‘methods’:
package ‘methods’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version
R Under development (unstable) (2018-04-17 r74612) -- "Unsuffered Consequences"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
That's an unfortunate problem with using a -devel version of anything. 使用任何东西的-devel版本都是一个不幸的问题。 Your dependencies and in this case many packages, are going to have to reinstalled when these conflicts occur.
发生这些冲突时,将必须重新安装您的依赖项(在这种情况下为许多程序包)。 Since this is a base package, you may be better off just removing R, and recompiling it, however, I'd start off just by removing the base libraries and reinstalling them.
由于这是一个基本程序包,因此最好删除R并重新编译它,但是,我最好先删除基本库并重新安装它们。 I haven't used the development version, but I'd say if that doesn't work, scrap it and start over.
我没有使用过开发版本,但是我想说如果那不起作用,则将其废弃并重新开始。
This should remove r-base and the dependencies. 这应该删除r-base和依赖项。
sudo apt-get purge --auto-remove r-base-core
It should remove these, in case you want to do any individually. 如果您想单独进行操作,则应删除这些内容。
sudo apt-get --purge remove r-base
sudo apt-get --purge remove r-base-dev
sudo apt-get --purge remove r-base-core
sudo apt-get --purge remove r-base-recommended
If this didn't work: 如果这不起作用:
bash R-devel
update.packages(ask=FALSE, checkBuilt = TRUE)
I'm not entirely sure what is wrong. 我不确定是哪里出了问题。 Aside from a repo issue.
除了回购问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.