Skip to content

Instantly share code, notes, and snippets.

@stevekm
Created December 27, 2017 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevekm/b3f192306e4fc154c0f2594aebc862d2 to your computer and use it in GitHub Desktop.
Save stevekm/b3f192306e4fc154c0f2594aebc862d2 to your computer and use it in GitHub Desktop.
stupid R error
> install.packages("ggrepel")
also installing the dependencies ‘viridisLite’, ‘scales’, ‘ggplot2’
trying URL 'https://cran.rstudio.com/bin/macosx/mavericks/contrib/3.3/viridisLite_0.2.0.tgz'
Content type 'application/x-gzip' length 54110 bytes (52 KB)
==================================================
downloaded 52 KB
trying URL 'https://cran.rstudio.com/bin/macosx/mavericks/contrib/3.3/scales_0.5.0.tgz'
Content type 'application/x-gzip' length 336683 bytes (328 KB)
==================================================
downloaded 328 KB
trying URL 'https://cran.rstudio.com/bin/macosx/mavericks/contrib/3.3/ggplot2_2.2.1.tgz'
Content type 'application/x-gzip' length 2760842 bytes (2.6 MB)
==================================================
downloaded 2.6 MB
trying URL 'https://cran.rstudio.com/bin/macosx/mavericks/contrib/3.3/ggrepel_0.7.0.tgz'
Content type 'application/x-gzip' length 675838 bytes (659 KB)
==================================================
downloaded 659 KB
The downloaded binary packages are in
/var/folders/8k/pcljrvwx0tbfp217m437898c0000gn/T//RtmpqBHGpt/downloaded_packages
> library("ggrepel") # for spreading text labels on the plot
Loading required package: ggplot2
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace ‘scales’ 0.4.0 is already loaded, but >= 0.4.1 is required
In addition: Warning messages:
1: package ‘ggrepel’ was built under R version 3.3.2
2: package ‘ggplot2’ was built under R version 3.3.2
Error: package ‘ggplot2’ could not be loaded
> library("ggplot2")
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace ‘scales’ 0.4.0 is already loaded, but >= 0.4.1 is required
In addition: Warning message:
package ‘ggplot2’ was built under R version 3.3.2
Error: package or namespace load failed for ‘ggplot2’
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment