[R] installing Packages

MacQueen, Don macqueen1 at llnl.gov
Mon Jan 26 22:08:02 CET 2015


First look at the help page for install.packages:

  ?install.packages

and read about the dependencies argument.

Then try
  install.packages("ggplot2", dependencies=TRUE)


-- 
Don MacQueen

Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062





On 1/26/15, 8:51 AM, "Kenya Carpenter" <kcarpent at umass.edu> wrote:

>Dear R- Help
>
>When installing ggplot2 it seems to install correctly but then I can't
>load
>it.  My R session is copied below.  Can you help?
>
>
>> install.packages("ggplot2")
>Installing package into ŒC:/Users/Kenya/Documents/R/win-library/3.1¹
>(as Œlib¹ is unspecified)
>--- Please select a CRAN mirror for use in this session ---
>trying URL '
>http://lib.stat.cmu.edu/R/CRAN/bin/windows/contrib/3.1/ggplot2_1.0.0.zip'
>Content type 'application/zip' length 2675989 bytes (2.6 Mb)
>opened URL
>downloaded 2.6 Mb
>
>package Œggplot2¹ successfully unpacked and MD5 sums checked
>
>The downloaded binary packages are in
>        C:\Users\Kenya\AppData\Local\Temp\RtmpCAsnP1\downloaded_packages
>> library(ggplot2)
>Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck
>= vI[[j]]) :
>  there is no package called ŒRcpp¹
>Error: package or namespace load failed for Œggplot2¹
>> library("ggplot2")
>Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck
>= vI[[j]]) :
>  there is no package called ŒRcpp¹
>Error: package or namespace load failed for Œggplot2¹
>
>
>Thanks in advance,
>Kenya Carpenter
>
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list