Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Commit

Permalink
[docs] R in Gitpod
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hellum committed Feb 14, 2020
1 parent e969fc9 commit eb62b16
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 0 deletions.
Binary file added src/docs/images/RGitpod.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/docs/images/RTools.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/docs/languages-and-frameworks.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ Below is a list of language and framework specific tips & tricks.
* [PHP](/docs/php-in-gitpod)
* [Rust](/docs/rust-in-gitpod/)
* [Julia](/docs/julia-in-gitpod/)
* [R](/docs/r-in-gitpod/)
4 changes: 4 additions & 0 deletions src/docs/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ export const MENU: MenuEntry[] = [
M(
"Julia",
"julia-in-gitpod"
),
M(
"R",
"r-in-gitpod"
)
]
),
Expand Down
39 changes: 39 additions & 0 deletions src/docs/r-in-gitpod.md
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)

0 comments on commit eb62b16

Please sign in to comment.