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 12, 2020
1 parent bb7312c commit 38c26d5
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,23 @@ vscode:
- [email protected]:Qde/ISuGvFTPjoaMf1FmnQ==
- [email protected]:YnjK47pXScU3DMFfQzkkOw==

- [email protected]:M4pd3IjUdOlW1oU7q8SITA==

github:
prebuilds:
# enable for the master/default branch (defaults to true)
master: true
# enable for all branches in this repo (defaults to false)
# enable for all branches in this repo (defaults to false)
branches: true
# enable for pull requests coming from this repo (defaults to true)
# enable for pull requests coming from this repo (defaults to true)
pullRequests: true
# enable for pull requests coming from forks (defaults to false)
# enable for pull requests coming from forks (defaults to false)
pullRequestsFromForks: true
# add a check to pull requests (defaults to true)
# add a check to pull requests (defaults to true)
addCheck: true
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
addComment: false
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
addBadge: false
# add a label once the prebuild is ready to pull requests (defaults to false)
addLabel: false
# add a label once the prebuild is ready to pull requests (defaults to false)
addLabel: false
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
46 changes: 46 additions & 0 deletions src/docs/r-in-gitpod.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# R in Gitpod

Gitpod does not come with out of the box support for R, so here is how to configure it

## Installing R

First you'll probably want to install R, to do this add the following to your [`.gitpod.Dockerfile`](https://www.gitpod.io/docs/config-docker/)

```Dockerfile
RUN brew install R
```

This will install R to your project!


## 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/):
```yaml
vscode:
extensions:
- [email protected]:z5vr1v1bfS++U/aHLSXQ6Q==
```
## R Tools
![Picture of R tools](images/RTools.png)
The R tools extension adds syntax checking, completions, code formatting, formatting as you type, tooltips, linting.
To add this extension to your repository add the following to your [`.gitpod.yml`](https://www.gitpod.io/docs/config-gitpod-file/):

```yaml
vscode:
extensions:
- [email protected]:M4pd3IjUdOlW1oU7q8SITA==
```

And add the following to your [`.gitpod.Dockerfile`](https://www.gitpod.io/docs/config-docker/):

```Dockerfile
RUN wget -q https://packages.microsoft.com/config/ubuntu/19.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
&& sudo dpkg -i packages-microsoft-prod.deb \
&& sudo apt-get update \
&& sudo apt-get install aspnetcore-runtime-3.1
```

0 comments on commit 38c26d5

Please sign in to comment.