Try out running R code in a blank codespace where VScode is configured for use with R.
Two ways:
- Click "Use this template" and "Open in a codespace" to directly use the repository in a codespace. This options works if you don't plan on saving any files.
- Click "Use this template" and "Create a new repository" to make your own repository based on r-vscode-codespaces. Then, open a codespace for the new repostory.
There are several codespace options here:
- r-quarto (default): Use a codespace with basic R and quarto set up.
- r-base: Use a codespace with basic R set up.
See creating a codespace in a repository for instructions on how to select which codespace you would like to use. In short, the "New with Options" button should be selected to specify which codespace configuration to use.
See codespaces4r for a utility to set this up. Another option is to directly copy over the devcontainer.json of choice into a folder named .devcontainer
within your R project's repository.