knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) knitr::opts_chunk$set(fig.width=12, fig.height=8)
To run RStudio on your VM, follow the instructions on this page.
In brief, log in to the VM, and run:
module load rstudio/1.2.5033-fosscuda-2019b-Java-11 /apps/misc/rserver.sh
Then follow the on-screen instructions to set up an ssh tunnel by running something like the following locally (numbers and username may differ):
ssh -L 8787:localhost:8787 username@vm.bmrc.ox.ac.uk # change the username and vm number
Finally, navigate to http://localhost:8787 in your browser.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.