Clojure with R

Remix this to get started with Clojure "1.10.1" and add-lib.

{:deps
 {org.clojure/clojure {:mvn/version "1.10.1"}
  org.clojure/tools.deps.alpha
  {:git/url "https://github.com/clojure/tools.deps.alpha.git"
   :sha "f6c080bd0049211021ea59e516d1785b08302515"}
  compliment {:mvn/version "0.3.9"}}}
deps.edn
Extensible Data Notation

You can add dependencies by modifying the deps.edn above (requires a runtime restart)...

(clojure-version)
0.0s
Clojure with R (Clojure)
"1.10.1"

...or at runtime using add-lib:

sudo apt update
sudo apt upgrade
23.5s
Clojure with R (Bash in Clojure)
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
0.6s
Clojure with R (Bash in Clojure)
sudo apt-get install software-properties-common
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
9.5s
Clojure with R (Bash in Clojure)
sudo apt update
sudo apt install r-base
46.1s
Clojure with R (Bash in Clojure)
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends \
  libssh2-1 libcurl4-openssl-dev libssl-dev libxml2-dev \
  r-base-dev libcairo2-dev libpango1.0-dev libpangocairo-1.0
apt-get clean
9.3s
Clojure with R (Bash in Clojure)
R --version
0.4s
Clojure with R (Bash in Clojure)
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"), Ncpus=4)'
8.1s
Clojure with R (Bash in Clojure)
R -e 'install.packages("Rserve",,"http://rforge.net")'
23.0s
Clojure with R (Bash in Clojure)
R -e 'install.packages("svglite")'
97.2s
Clojure with R (Bash in Clojure)
R -e 'install.packages("ggplot2", Ncpus=2)'
120.3s
Clojure with R (Bash in Clojure)
R -e 'install.packages("tidyverse", Ncpus=2)'
411.3s
Clojure with R (Bash in Clojure)
R -e 'install.packages(c("latticeExtra", "MEMSS", "mlmRev"), Ncpus=2)'
155.0s
Clojure with R (Bash in Clojure)
Runtimes (1)