Public Repository

Last pushed: 2 years ago
Short Description
RStudio with Rcpp development environment
Full Description

Using Rcpp with RStudio, the basic usage as follows:

$ cat run.sh

#!/usr/bin/bash

echo -e "Download RStudio with rcpp docker images ...\n"
sudo docker pull ajia/rstudio_rcpp:latest

cport=8787

echo -e "Starting RStudio docker container ...\n"
cid=$(sudo docker run -d -p $cport:$cport ajia/rstudio_rcpp:latest)

echo -e "The current container ID: $cid\n"

echo -e "Get IP address of RStudio container\n"
ip=$(sudo docker inspect -f "{{.NetworkSettings.IPAddress}}" $cid)

echo -e "The current IP address of RStudio container: $ip\n"

echo -e "Using firefox browser to open RStudio\n"
firefox $ip:$cport

$ sh run.sh

Docker Pull Command
Owner
ajia