This repository has been archived by the owner on Apr 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sean Hellum
committed
Feb 14, 2020
1 parent
e969fc9
commit eb62b16
Showing
5 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,6 +123,10 @@ export const MENU: MenuEntry[] = [ | |
M( | ||
"Julia", | ||
"julia-in-gitpod" | ||
), | ||
M( | ||
"R", | ||
"r-in-gitpod" | ||
) | ||
] | ||
), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# R in Gitpod | ||
|
||
In order to work with R in Gitpod, you will need to properly configure your repository. Here is how to do it. | ||
|
||
## Installing R | ||
|
||
First you'll probably want to install R itself. To do this, add a new file to your repository called [`.gitpod.Dockerfile`](https://www.gitpod.io/docs/config-docker/), and add the following content to it: | ||
|
||
```Dockerfile | ||
FROM gitpod/workspace-full | ||
|
||
RUN brew install R | ||
``` | ||
|
||
Next, create a Gitpod configuration file called `.gitpod.yml` (you can also simply run `gp init` and Gitpod will generate the file), and reference the above Dockerfile in it like so: | ||
|
||
```yml | ||
image: | ||
file: .gitpod.Dockerfile | ||
``` | ||
Then commit and push both files to your repository. After that, every new Gitpod workspace created for your project will have R pre-installed. | ||
## VSCode Extensions | ||
### R Extension | ||
![Picture of R extension](images/RGitpod.png) | ||
To install the R extension to your repository, add the following to your [`.gitpod.yml`](https://www.gitpod.io/docs/config-gitpod-file/) file: | ||
|
||
```yaml | ||
vscode: | ||
extensions: | ||
- [email protected]:z5vr1v1bfS++U/aHLSXQ6Q== | ||
``` | ||
|
||
Here is a minimal example of [R running in Gitpod](https://github.com/gitpod-io/Gitpod-R). You can try it here: | ||
|
||
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/gitpod-io/Gitpod-R) |