R Dev Container
A containerised development environment for editing and compiling the R source code. The environment contains the VSCode IDE and tools needed to compile R.
Getting started
You can run this environment on GitHub using codespaces
Codespaces
Click on the 'Open in GitHub Codespaces' button and then click the green 'Create Codespace' button.
The codespace setup screen will then be shown. Starting the container may take a minute or so.
You will be taken to a VSCode editor within your browser.
Running R
Create a file in VS Code ending with a .R extension. You can create new files by clicking on the new file icon in VS Code.
Open the file by clicking on the filename. You should see R:(note attached) in the bottom bar.
Click on the R:(note attached) button to launch R in the terminal. You can then send code from the .R file to the termianl r by pressing cmd + enter.