[R] installing Packages

Michael Dewey
Mon, 26 Jan 2015 18:21:46 -0000

On 26/01/2015 16:51, Kenya Carpenter 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?
See below
>
>
>> 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?

The first thing to check is whether you in fact have Rcpp installed.

> 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.
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2015.0.5645 / Virus Database: 4273/9002 - Release Date: 01/26/15
>

--
Michael