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 a53e2ac
Showing
6 changed files
with
71 additions
and
27 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,33 +1,33 @@ | ||
ports: | ||
- port: 8000 | ||
onOpen: open-preview | ||
- port: 8000 | ||
onOpen: open-preview | ||
|
||
tasks: | ||
- init: yarn && yarn build | ||
command: yarn dev --host 0.0.0.0 | ||
- init: cd plugins/gatsby-remark-gitpod && npm install | ||
openMode: split-right | ||
- init: yarn && yarn build | ||
command: yarn dev --host 0.0.0.0 | ||
- init: cd plugins/gatsby-remark-gitpod && npm install | ||
openMode: split-right | ||
|
||
vscode: | ||
extensions: | ||
- [email protected]:Qde/ISuGvFTPjoaMf1FmnQ== | ||
- [email protected]:YnjK47pXScU3DMFfQzkkOw== | ||
extensions: | ||
- [email protected]:Qde/ISuGvFTPjoaMf1FmnQ== | ||
- [email protected]:YnjK47pXScU3DMFfQzkkOw== | ||
|
||
github: | ||
prebuilds: | ||
# enable for the master/default branch (defaults to true) | ||
master: true | ||
# enable for all branches in this repo (defaults to false) | ||
branches: true | ||
# enable for pull requests coming from this repo (defaults to true) | ||
pullRequests: true | ||
# enable for pull requests coming from forks (defaults to false) | ||
pullRequestsFromForks: 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) | ||
addComment: 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 | ||
prebuilds: | ||
# enable for the master/default branch (defaults to true) | ||
master: true | ||
# enable for all branches in this repo (defaults to false) | ||
branches: true | ||
# enable for pull requests coming from this repo (defaults to true) | ||
pullRequests: true | ||
# enable for pull requests coming from forks (defaults to false) | ||
pullRequestsFromForks: 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) | ||
addComment: 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 |
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 project. 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, try it! | ||
|
||
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/gitpod-io/Gitpod-R) |