Skip to content

Instantly share code, notes, and snippets.

@kohske
Created August 17, 2011 06:34
Show Gist options
  • Save kohske/1150934 to your computer and use it in GitHub Desktop.
Save kohske/1150934 to your computer and use it in GitHub Desktop.
How to install development version of ggplot2
# install devtools
install.packages('devtools')
# install dependency of scales package
install.packages(c("RColorBrewer", "stringr", "dichromat", "munsell", "plyr", "colorspace"))
# load devtools
library(devtools)
# move to development mode
# scales and ggplot2 are installed in "~/R-dev" directory, so official version of ggplot2 are not removed.
dev_mode(TRUE)
install_github("scales")
# main branch of development
install_github("ggplot2", "hadley", "develop")
#install_github("ggplot2", "kohske", "feature/new-guides-with-gtable")
# load development version of ggplot2
library(ggplot2)
@yash-bhatt
Copy link

I get this error even when dev_mode is on:

restarting interrupted promise evaluation
internal error -3 in R_decompress1Error: package or namespace load failed for ‘ggplot2’ in get(method, envir = home):
lazy-load database '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/ggplot2/R/ggplot2.rdb' is corrupt

I believe it's saying my original file is corrupt, but I'm not sure. What should I do?

Yes even I am getting same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment