Install docker in your system
Run the following command from the terminal, change mypassword for a password you select, and the path (/home/user/tmp/) to an existing path in you local file system, you can also change /home/rstudio/tmp to a different location but keep the base path /home/rstudio/
docker run --rm -e PASSWORD=mypassword -p 8787:8787 -v /home/user/tmp/:/home/rstudio/tmp stanmoon/rgriffin
The container will be removed when it exits, but this can be changed by removing de --rm option. See more options in the docker documentation.
Install docker in your system
Run the following command from the terminal, change mypassword for a password you select, and the user path (/home/user/tmp/) to an existing path in you local file system you can also change /home/rstudio/tmp to a different location but keep the base path /home/rstudio/
docker run --rm -p -e PASSWORD=mypassword 8787:8787 -v /home/user/tmp/:/home/rstudio/tmp rocker/verse
Open browser (localhost:8787) and connect with the user rstudio y with the password you provided in step 2
Follow rGriffin installation instruction (do not stop the instance after you finish this step).
After successful instalation and testing of rGriffin, open a new terminal and obtain the container id of the rstudio instance by typing
docker ps
A message similar to the following will be printed in the terminal
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3e4afb7d547c rocker/verse "/init" 21 minutes ago Up 21 minutes 0.0.0.0:8787->8787/tcp boring_cray In this case 3e4afb7d547c is the container ID, we will use this ID in the next step
docker commit -m "rstudio with rGriffin package" 3e4afb7d547c rstudio_rgriffin
Here we have created a new image -m option gives a descriptive message, the name of the image in this case is rstudio_rgriffin, but another label can be selected.
docker run --rm -e PASSWORD=mypassword -p 8787:8787 -v /home/user/tmp/:/home/rstudio/tmp rstudio_rgriffin
open the browser and verify that rGriffin is indeed installed and running.
login to docker hub
docker login -u dockeralias
docker tag rstudio_rgriffin dockeralias/rgriffin
docker push dockeralias/rgriffin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.