/R-on-the-rocker

YakData R 4.1.1 "on the Rocker"

Primary LanguageShellOtherNOASSERTION

YakData R 4.1.1 "on the Rocker"

Build R 4.1.1 with verse, tidyverse and the RStudio IDE (open source) in 3 progressive Docker containers.

R_Logo

🎢 Features

This is based on the Rocker project. It has been modified for use in YakData/SmartManager-for-ShinyProxy

The structure of the Dockerfiles in rocker-versioned is:

r411
  rstudio
    tidyverse
      verse
        rstudiofinal

Here, it has been simplified to:

r-4.1.1
  verse-r-4.1.1
    rstudio-verse-r-4.1.1

🧰 Install and setup

Logon to your server

If it doesn't exist, create /yakdata

sudo mkdir /yakdata
sudo chown ubuntu:ubuntu /yakdata
mkdir /yakdata/apps

Upload /yakdata/apps from this repository to /yakdata/

# from local to server
dir_local="/path/to/downloaded/and/unzippped/repo/yakdata/apps/"
dir_remote=/yakdata/apps
keyfile='/path/to/your/pem/my.pem'
host=my.host.com

cd "$dir_local"

rsync --progress -h -v -r -P -t -z --no-o --no-g \
      -e "ssh -i $keyfile" \
      $dir_local ubuntu@$host:$dir_remote --delete

Login and change folder permissions.

ssh -i "$keyfile" "ubuntu@$host"

cd /yakdata/apps/R/4.1.1

chmod +x /yakdata/apps/R/4.1.1/scripts/*.sh

Run the Docker Compose builds. Total time to install may take 10 minutes to 2 hours, depending on your host system performance.

IMPORTANT- ensure that you have your terminal session set to send an ASCII code when idle or similar setting. On the Mac with iTerm2, this is under Session -> Edit Session -> pick the session from the list -> Session -> "When idle, send ASCII code...". Otherwise, the builds may time out and fail.

cd /yakdata/apps/R/4.1.1

mkdir /yakdata/apps/logs-docker-compose-builds

(
docker-compose build r-4.1.1
) 2>&1 |& tee /yakdata/apps/logs-docker-compose-builds/R-r-4.1.1.log

(
docker-compose build verse-r-4.1.1
) 2>&1 |& tee /yakdata/apps/logs-docker-compose-builds/R-verse-r-4.1.1.log 

(
docker-compose build rstudio-verse-r-4.1.1
) 2>&1 |& tee /yakdata/apps/logs-docker-compose-builds/R-rstudio-verse-r-4.1.1.log 

NOTE By default, the R packages will install from the RSPM repository, with a date of 2021-09-22

CRAN=https://packagemanager.rstudio.com/cran/2021-09-22+MTo1MTg0MzM5O0Q4MjI2M0Y

Command output will echo to the session where you started the installation. If you like, you can connect with a second SSH session and watch the logs at /yakdata/apps/logs-docker-compose-builds

πŸ” LICENSE

This repository is licensed under GPLv2.

πŸ“« Issues

Please share issues here in this repository Issues.

πŸ“˜ Docs

Based on: https://github.com/rocker-org/rocker-versioned

πŸ’Ό Alternatives

Do it yourself. Some people just like to do it all!

Use rocker-versioned directly.

πŸ§‘β€πŸ’» Discussion

Head over to The YakData Community. You can login to comment with your Github account, a Google account or your email and a password.

πŸŽ‰ About YakData

YakData is an agile forecasting firm delivering critical-path forecasts for new products, product acquisition, ad growth and sales force expansion to scale and grow your business.

We build strategic forecasts for your business based on modern, advanced analytic languages and modular data stacks that are quick to develop and share with key stakeholders in your business.

Successful projects have included forecasting new customer revenue by marketing channel at a leading subscription business, planning a 9-figure acquisition and investment decision at a leading biotech company, optimizing online ad-spend at a leading billion-dollar retailer, building mix-model multi-channel marketing forecasts at a multi-billion dollar video platform and estimating customer lifetime value in real-time at a leading online streaming business.

When you hire YakData, our principals perform the majority of your high-value project work. Our primary mission is to be your trusted confidante as you make critical business investments and decisions. We deliver results that are presentation-ready for executive teams, boards of directors and key investors.