Good afternoon,
when running the following script
#https://uoftcoders.github.io/rcourse/lec01-introduction.html
library(ggplot2)
require(GGally)
iris <- read.csv("~/R software/RR SCRIPT/Introduction to course R/iris.csv")
iris
mean(iris$Petal.Length )
summary(iris)
ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width))+geom_point()
ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species))+geom_point()
ggplot(iris, aes(x = Petal.Length, fill = Species)) +geom_histogram()
ggplot(iris, aes(x = Petal.Length, fill = Species)) +
geom_histogram() +
facet_wrap(~ Species, dir = 'v')
ggpairs(iris, aes(color = Species))
I have the following alert:
ggpairs(iris, aes(color = Species))
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘stringi’
when installing the "stringi" package
I receive the following statements:
install.packages('stringi')
There is a binary version available but the source version is later:
binary source needs_compilation
stringi 1.1.7 1.2.3 TRUE
installing the source package ‘stringi’
trying URL 'https://cran.rstudio.com/src/contrib/stringi_1.2.3.tar.gz'
Content type 'application/x-gzip' length 7270993 bytes (6.9 MB)
downloaded 6.9 MB
* installing *source* package 'stringi' ...
** package 'stringi' successfully unpacked and MD5 sums checked
Warning in system("sh ./configure.win") : 'sh' not found
ERROR: configuration failed for package 'stringi'
* removing 'C:/Program Files/R/R-3.5.0/library/stringi'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘stringi’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\hermesr\AppData\Local\Temp\Rtmpe0YD1m\downloaded_packages’
and running the script again repeats the first alert:
ggpairs(iris, aes(color = Species))
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘stringi’
Any recommendation to run the script successfully?
Gracias
Hermes