Question: "methods.rdb' is corrupt" for every library I load
0
gravatar for demoraesdiogo2017
2.3 years ago by
demoraesdiogo201740 wrote:

Hello Recently I have been trying to use the survival package, which worked for a while, until I started to get the error

Error: package or namespace load failed for ‘survival’ in .updateMethodsInTable(fdef, where, attach):
 lazy-load database 'C:/PROGRA~1/R/R-3.4.0/library/methods/R/methods.rdb' is corrupt

for every single library I try to load. for some reason it also accuses any csv or excel file I load in RStudio of being corrupt as well (it opens normally on excel)

Any idea on how to fix it?

R software error • 1.4k views
ADD COMMENTlink modified 2.3 years ago by Kevin Blighe66k • written 2.3 years ago by demoraesdiogo201740

Added R tag to your post.

It's complaining about the methods package, which is a base package, so, it's unusual that it's corrupt.

What happens when you just run require(methods) in a new session? Have you moved files around recently or re-istalled anything?

ADD REPLYlink modified 2.3 years ago • written 2.3 years ago by Kevin Blighe66k
0
gravatar for Kevin Blighe
2.3 years ago by
Kevin Blighe66k
Kevin Blighe66k wrote:

I re-created your problem and was able to fix it by doing the following (on linux / Ubuntu 16.04):

sudo apt-get purge r-base-core

sudo apt-get install r-base-core

This, in addition, maintains any other packages that you may have installed.

Kevin

ADD COMMENTlink written 2.3 years ago by Kevin Blighe66k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1615 users visited in the last hour