Search code examples
rrstudiorstudio-server

Error in fetch(key): lazy-load database in base R


My RStudio server interface is occasionally returning an error dialog:

Error Retrieving Help

and printing the following to my R console:

Error in fetch(key) : 
  lazy-load database '$INSTALLED_PATH/lib64/R/library/base/help/base.rdb' is corrupt

It also seems to break fonts in plots:

Missing fonts

Searching through similar error messages on StackOverflow pointed towards the problems being specific to custom packages. However, this is a problem in base. It persists across R sessions. Any suggestion on how I might make this error go away?


Solution

  • This is an Rstudio problem with the current session, but there is an easy fix for it.

    Simply restart your Rstudio!

    Solution found here.