Micah P. Dombrowski / Jul 06 2018
with Andrea Amantini
R 3.5.0 Testing
R 3.5.0 Testing
apt-get update > /dev/null apt-get install -y --no-install-recommends gnupg apt-utils # R 3.5 repo echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' > \ /etc/apt/sources.list.d/r35.list apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9 apt-get update > /dev/null apt-get install -y --no-install-recommends \ libssh2-1 libcurl4-openssl-dev libssl-dev libxml2-dev \ r-base r-base-dev apt-get clean rm -r /var/lib/apt/lists/* # Clear package list so it isn't stale
echo 'local({ r <- getOption("repos") r["CRAN"] <- "https://cloud.r-project.org" options(repos = r, download.file.method = "libcurl") })' > /etc/R/Rprofile.site
R -e 'install.packages(c("base64enc", "jsonlite", "feather", "devtools", "tidyverse", "plotly"))'
R -e 'devtools::install_github("hadley/ggplot2")'
R --version
R.Version()
1. svglite
1.
svglite
apt-get update > /dev/null apt-get install -y --no-install-recommends libcairo2-dev apt-get clean rm -r /var/lib/apt/lists/* # Clear package list so it isn't stale R -e 'install.packages("svglite")'
R.Version() library(ggplot2) ggplot(data = iris, aes(x = Petal.Length, y = Petal.Width)) + geom_point() + labs(title="Iris Data", x="Iris petal length", y="Iris petal width")