[R] Error installing ggplot2 package
Bert Gunter
bgunter.4567 at gmail.com
Wed Jan 10 16:40:40 CET 2018
Point of clarification:
Packages other than those that are part of the "standard" r distro
must first be "installed" from a package repository -- typically CRAN
-- via the install.packages()* function before they can be accessed
via the library() or require() function. Have you done this? See
?installed.packages if you are unsure.
Also, R must know what libraries to look in for any packages to be
loaded via the library() function. see ?library for possibly relevant
help on specifying the location if needed.
Finally, apologies if I am offbase on this; others may understand your
error message better than I and give you a more appropriate response.
*Or through a suitable GUI interface that call install.packages().
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Tue, Jan 9, 2018 at 10:35 PM, Amelia Marsh via R-help
<r-help at r-project.org> wrote:
> DeaR Forum,
> I am trying to install the library ggplot2.
> Currently I am using following R version
> R version 3.4.1 (2017-06-30) -- "Single Candle"Copyright (C) 2017 The R Foundation for Statistical ComputingPlatform: x86_64-w64-mingw32/x64 (64-bit)
>
> However, when I try to install ggplot2 and few other packages, I am getting following error.
>> library(ggplot2)Error: package or namespace load failed for ‘ggplot2’ in readRDS(pfile): error reading from connectionIn addition: Warning message:package ‘ggplot2’ was built under R version 3.5.0
>
> I wonder about the R version 3.5.0 as I checked on the CRAN site, the latest R version is R 3.4.3. I have in fact tried installing older versions too, but the error message remains same. Please guide.
> Regards
> Amelia
>
>
>
>
>
> [[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