installing Packages

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

installing Packages

Kenya Carpenter
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]]

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: installing Packages

Michael Dewey


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]]
>
> ______________________________________________
> [hidden email] 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
http://www.dewey.myzen.co.uk

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: installing Packages

MacQueen, Don
In reply to this post by Kenya Carpenter
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" <[hidden email]> 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]]
>
>______________________________________________
>[hidden email] 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.

______________________________________________
[hidden email] 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.