Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in fetch(key) : lazy-load database

Tags:

r

roxygen2

I don't know what is going on, everything was working great but suddenly I started to have this error message on the documentation:

Error in fetch(key) : lazy-load database '......descopl.rdb' is corrupt

I removed almost all my code and build again then publish to Github, but when I use the other laptop to download the package, the package is being downloaded and loaded but I can't call any of the functions, and the documentation states that error.

I don't know what caused the problem, I am using roxygen to generate the documentation.

https://github.com/WilliamKinaan/descopl

like image 616
Paolo RLang Avatar asked May 24 '15 14:05

Paolo RLang


2 Answers

It seems that the error arises when the package cannot be decompressed by R (as @rawr established, it is corrupt). This solutions have worked for me:

1) Check for possible errors in the creation of the .Rdb files

2) Try restarting your R session (e.g. .rs.restartR() if in RStudio)

3) The package might have been installed in your computer (even though it does not work). Remove it using ?remove.packages()

like image 70
Rodrigo Zepeda Avatar answered Sep 20 '22 22:09

Rodrigo Zepeda


I have had this problem with roxygen2 as well. Couldn't see any problem with any of my functions. In the end deleting the .rdb file and then getting roxygen2 to rebuild it seemed to solve the problem.

like image 37
Zfunk Avatar answered Sep 19 '22 22:09

Zfunk