Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 2.87 KB

README.md

File metadata and controls

41 lines (26 loc) · 2.87 KB

r-vscode-codespaces

Try running R code in a codespace where VScode is configured for use with R.

Warning: this repo is no longer actively maintained!

These are example files for codespaces, but using R in Codespaces is always evolving, so files require active use ane maintenance.

Reach out to @eeholmes if you have questions.

Maintained Codespace Templates and Container Images

Maintained Codespace Files

These can be used to inspire your own Codespace files.

How to use this repository with Codespaces

Two ways:

  1. 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.
  2. 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.

I already have an R project that I want to use with codespaces!!! What should I do?

Copy over the devcontainer.json of choice into a folder named .devcontainer within your R project's repository.