[R] installing Packages

MacQueen, Don
Mon, 26 Jan 2015 21:08:02 -0000

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.