Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ggplot2 is corrupt #36

Closed
chamafelipe opened this issue Feb 12, 2018 · 6 comments
Closed

ggplot2 is corrupt #36

chamafelipe opened this issue Feb 12, 2018 · 6 comments

Comments

@chamafelipe
Copy link

chamafelipe commented Feb 12, 2018

Hi @thomasp85 ,

Thanks for this awesome package. I'm running into a bit of trouble while trying to install it though. I get the following error message when I try to load patchwork:

> library(patchwork)
Error: package or namespace load failed for ‘patchwork’ in get(Info[i, 1], envir = env):
 lazy-load database '/usr/local/lib/R/3.4/site-library/ggplot2/R/ggplot2.rdb' is corrupt
In addition: Warning message:
In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1

After that, my ggplot2 becomes corrupt.

@thiagosfsilva
Copy link

thiagosfsilva commented Feb 16, 2018

Happened today with me too. Although the package did get installed, an attempt to use cowplot::plot_grid() immediately after patchwork was installed returned the "ggplot is corrupted" error. Restarting the R session fixed the corrupting influences of patchwork, which then loaded and functioned correctly (as did plot_grid).

@mattmills49
Copy link

From Hadley himself, "Whenever you see "lazy-load database corrupted", the first thing to try is restarting R." r-lib/devtools#942 (comment)

I think it may have something to do with trying to install patchwork when ggplot2 is already loaded in your environment but I'm not sure of that.

@dnlmc
Copy link

dnlmc commented Mar 3, 2018

Had the same issue today. Per @mattmills49 comment, opened a new Rstudio window, successfully installed patchwork, then loaded the library into my previous R session with no trouble.

@ThomasPepperz
Copy link

From Hadley himself, "Whenever you see "lazy-load database corrupted", the first thing to try is restarting R." r-lib/devtools#942 (comment)

@mattmills49

Hadley Hath Spoken!

@hafez-ahmad
Copy link

I insttaled tidyverse I again , I update ggplot separately then I am gettting this message
Error: package or namespace load failed for ‘ggplot2’ in get(method, envir = home):
lazy-load database 'C:/Users/hafez/Documents/R/win-library/3.6/ggplot2/R/ggplot2.rdb' is corrupt
In addition: Warning messages:
1: package ‘ggplot2’ was built under R version 3.6.3
2: In .registerS3method(fin[i, 1], fin[i, 2], fin[i, 3], fin[i, 4], :
restarting interrupted promise evaluation
3: In get(method, envir = home) :
restarting interrupted promise evaluation
4: In get(method, envir = home) : internal error -3 in R_decompress1

mtcars %>%

@harshithasv16
Copy link

If you try to re-install the package which is already installed, you will get this error.
try to restart R, it worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants