Skip to content

Commit 3d31f9a

Browse files
committed
Merge remote-tracking branch 'origin/main' into devel
2 parents 192bcce + 4e99cf0 commit 3d31f9a

37 files changed

+786
-402
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"r.rterm.linux": "/usr/bin/R",
1414
"terminal.integrated.sendKeybindingsToShell": true,
1515
"svn.multipleFolders.enabled": true,
16-
"workbench.editorAssociations": {
16+
"workbench.editorAssociations": {
1717
"*.md": "vscode.markdown.preview.editor"
1818
},
1919
"workbench.welcomePage.walkthroughs.openOnInstall": false

.github/ISSUE_TEMPLATE/release-new-version-of-devcontainer.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ assignees: ''
99

1010
Checklist for release:
1111

12-
- [ ] Update NEWS file
13-
- [ ] Update CITATION.cff
14-
- [ ] Update VERSION
15-
- [ ] In devcontainer.json, update `"image": "ghcr.io/r-devel/r-dev-env:devel"` to `"image": "ghcr.io/r-devel/r-dev-env:main"`,,
16-
- [ ] Make PR to main branch - needs approving review!
17-
- [ ] Make sure docker container is rebuilt
18-
- [ ] Test container and fix any issues
19-
- [ ] Make GitHub release
20-
- [ ] Rebuild docs
12+
- [ ] Update NEWS file
13+
- [ ] Update CITATION.cff
14+
- [ ] Update VERSION
15+
- [ ] In devcontainer.json, update `"image": "ghcr.io/r-devel/r-dev-env:devel"`
16+
to `"image": "ghcr.io/r-devel/r-dev-env:main"`,,
17+
- [ ] Make PR to main branch - needs approving review!
18+
- [ ] Make sure docker container is rebuilt
19+
- [ ] Test container and fix any issues
20+
- [ ] Make GitHub release

.github/README.md

Lines changed: 54 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,76 @@
11
# R Dev Container
2-
![Release](https://img.shields.io/github/v/release/r-devel/r-dev-env)
32

3+
![Release](https://img.shields.io/github/v/release/r-devel/r-dev-env)
44

5-
The aim of the R Dev Container is to provide a standard environment for the exploration and development of the R source code. A prototype was developed under Google Summer of Code 2023 and development is continuing under Google Summer of Code 2024.
5+
The aim of the R Dev Container is to provide a standard environment for the
6+
exploration and development of the R source code. A prototype was developed
7+
under Google Summer of Code 2023 and development is continuing under Google
8+
Summer of Code 2024.
69

710
## Getting started
811

912
### Run in a web browser with GitHub Codespace
1013

11-
Click on the button below followed by "Create Codespace" to create and enter your own web based containerised develoment environment.
14+
Click on the button below followed by "Create Codespace" to create and enter
15+
your own web based containerised develoment environment.
16+
17+
[![Open in GitHub
18+
Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=647768262&machine=premiumLinux&devcontainer_path=.devcontainer%2Fdevcontainer.json&location=WestUs2)
1219

13-
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=647768262&machine=premiumLinux&devcontainer_path=.devcontainer%2Fdevcontainer.json&location=WestUs2)
20+
The [Starting Codespace
21+
section](https://contributor.r-project.org/r-dev-env/container_setup/github_codespace/creating_codespace/)
22+
of the R Dev Container Docs will walk you through the process. Then you can work
23+
through the tutorials in the docs to lean how to use the codespace for R
24+
development.
1425

15-
The [Starting Codespace section](https://contributor.r-project.org/r-dev-env/container_setup/creating_codespace/) of the R Dev Container Docs will walk you through the process. Then you can work through the tutorials in the docs to lean how to use the codespace for R development.
26+
More details about GitHub codespaces can be found in the [GitHub Codespaces
27+
Docs](https://docs.github.com/en/codespaces/overview). GitHub currently offers
28+
up to 60 hours for free on dual core codespaces.
1629

17-
More details about GitHub codespaces can be found in the [GitHub Codespaces Docs](https://docs.github.com/en/codespaces/overview). GitHub currently offers up to 60 hours for free on dual core codespaces.
30+
[![Open in Gitpod](https://img.shields.io/badge/Gitpod-Open%20in%20Gitpod-blue?logo=gitpod&style=for-the-badge)](https://gitpod.io/github.com/r-devel/r-dev-env/tree/main)
31+
32+
The [Starting Gitpod
33+
section](https://contributor.r-project.org/r-dev-env/container_setup/gitpod_workspace/workspacestart/)
34+
of the R Dev Container Docs will walk you through the process. Then you can
35+
work through the tutorials in the docs to lean how to use the codespace for R
36+
development.
37+
38+
More details about Gitpod Workspaces can be found in the
39+
[Gitpod Workspace Docs](https://www.gitpod.io/docs/introduction). Gitpod
40+
currently offers Up to 896 cores, 12,000 GB RAM & GPUs in free tier.
1841

1942
### Run on your local computer
2043

21-
The R Dev Container can also be run locally on your computer.
22-
Running the environment requires you to have Docker, VSCode, and the VSCode Dev Containers extension installed.
23-
Upon opening a copy of the [r-dev-env repository](https://github.com/r-devel/r-dev-env) in VSCode you will be prompted to start the dev container.
44+
The R Dev Container can also be run locally on your computer. Running the
45+
environment requires you to have Docker, VSCode, and the VSCode Dev Containers
46+
extension installed. Upon opening a copy of the [r-dev-env
47+
repository](https://github.com/r-devel/r-dev-env) in VSCode you will be prompted
48+
to start the dev container.
2449

25-
The [Local setup section](https://contributor.r-project.org/r-dev-env/tutorials/localsetup/) of the R Dev Container Docs will walk you through the process.
26-
Then you can work through the following the tutorials in the docs to learn how to use the codespace for R development.
50+
The [Local setup
51+
section](https://contributor.r-project.org/r-dev-env/container_setup/local_setup/localsetup/)
52+
of the R Dev Container Docs will walk you through the process. Then you can
53+
work through the following the tutorials in the docs to learn how to use the
54+
codespace for R development.
2755

28-
More information about Dev Containers can be found in the [Microsoft Documentation](https://code.visualstudio.com/docs/devcontainers/containers).
56+
More information about Dev Containers can be found in the [Microsoft
57+
Documentation](https://code.visualstudio.com/docs/devcontainers/containers).
2958

3059
## Project Background
3160

32-
The standard development process used by members of the R Core Team involves an iterative process of making changes to the source code, re-building R and exploring/testing the changes made.
33-
This process presents a big hurdle for new contributors to R, as setting up their system to build R can be non-trivial, requiring a lot of trouble-shooting, especially on Windows and macOS.
34-
On Linux and macOS, it is not straight-forward to work with different versions of R side-by-side and care needs to be taken not to corrupt or over-write the user's existing version of R/R packages.
35-
36-
For these reasons, we propose to create containerized development environments for R.
37-
Our focus will be on creating a complete environment, including an IDE, that will provide a familiar space for R developers to work on contributions to base R.
61+
The standard development process used by members of the R Core Team involves an
62+
iterative process of making changes to the source code, re-building R and
63+
exploring/testing the changes made. This process presents a big hurdle for new
64+
contributors to R, as setting up their system to build R can be non-trivial,
65+
requiring a lot of trouble-shooting, especially on Windows and macOS. On Linux
66+
and macOS, it is not straight-forward to work with different versions of R
67+
side-by-side and care needs to be taken not to corrupt or over-write the user's
68+
existing version of R/R packages.
69+
70+
For these reasons, we propose to create containerized development environments
71+
for R. Our focus will be on creating a complete environment, including an IDE,
72+
that will provide a familiar space for R developers to work on contributions to
73+
base R.
3874

3975
## Contributors
4076

.github/workflows/build-and-publish-image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# This workflow uses actions that are not certified by GitHub.
1+
# This workflow uses actions that are not certified by GitHub.
22
# They are provided by a third-party and are governed by
33
# separate terms of service, privacy policy, and support
4-
# documentation.
4+
# documentation.
55

66
name: Build and publish Docker image
77

@@ -15,7 +15,7 @@ on:
1515
- 'Dockerfile'
1616
- 'reinstall-cmake.sh'
1717
- 'VERSION'
18-
18+
1919

2020
env:
2121
REGISTRY: ghcr.io

.github/workflows/build-gitpod-image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# This workflow uses actions that are not certified by GitHub.
1+
# This workflow uses actions that are not certified by GitHub.
22
# They are provided by a third-party and are governed by
33
# separate terms of service, privacy policy, and support
4-
# documentation.
4+
# documentation.
55

66
name: Build and publish Gitpod Docker image
77

@@ -16,7 +16,7 @@ on:
1616
- '.gitpod.yml'
1717
- 'reinstall-cmake.sh'
1818
- 'VERSION'
19-
19+
2020

2121
env:
2222
REGISTRY: ghcr.io

.github/workflows/build-mkdocs-website.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ on:
1010
- 'docs/**/**'
1111
- 'mkdocs.yml'
1212

13+
permissions:
14+
contents: write
15+
1316
jobs:
1417
build-and-deploy:
15-
if: ${{github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true}}
18+
if: |
19+
github.event_name == 'workflow_dispatch' ||
20+
(github.event_name == 'pull_request' && github.event.pull_request.merged == true)
1621
runs-on: ubuntu-latest
17-
permissions:
18-
contents: write
1922

2023
steps:
2124
- name: Checkout repository
@@ -24,7 +27,7 @@ jobs:
2427
- name: Set up Python
2528
uses: actions/setup-python@v2
2629
with:
27-
python-version: 3.x
30+
python-version: 3.x
2831

2932
- name: Install dependencies
3033
run: pip install mkdocs mkdocs-material[imaging]

.markdownlint-cli2.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
config:
2+
3+
# MD013 - line-length
4+
line_length:
5+
line_length: 80
6+
code_blocks: false
7+
tables: false
8+
html:
9+
allowed_elements:
10+
- div
11+
- figure
12+
# MD029 - ol-prefix disabled as ordered lists are interspersed wit code in multiple places
13+
ol-prefix: false
14+
# MD041 - first-line-heading disable due to splitting of sections across multiple files
15+
first-line-h1: false
16+
17+
globs:
18+
19+
- "docs/**/*.md"
20+
- "*.md"
21+
22+
23+
fix: true

.pre-commit-config.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v5.0.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files
11+
12+
- repo: https://github.com/DavidAnson/markdownlint-cli2
13+
rev: v0.18.1
14+
hooks:
15+
- id: markdownlint-cli2
16+
args: []
17+
18+
ci:
19+
autofix_prs: true
20+
autofix_commit_msg: '[pre-commit.ci] Fixing issues with pre-commit'
21+
autoupdate_schedule: weekly
22+
autoupdate_commit_msg: '[pre-commit.ci] pre-commit-autoupdate'
23+
skip: [] # Optionally list ids of hooks to skip on CI

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ authors:
99
given-names: James
1010
- family-name: Emsley
1111
given-names: Iain
12-
12+
1313
title: "R Development Container"
1414
version: 0.3.0
15-
doi:
15+
doi:
1616
date-released: 04-09-2024

CODE_OF_CONDUCT.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ reporter of any incident.
6464

6565
## Attribution
6666

67-
This Code of Conduct is adapted from the [Contributor Covenant](https://contributor-covenant.org/), version
68-
[1.4](https://www.contributor-covenant.org/version/1/4/code-of-conduct/code_of_conduct.md) and
69-
[2.0](https://www.contributor-covenant.org/version/2/0/code_of_conduct/code_of_conduct.md),
70-
and was generated by [contributing-gen](https://github.com/bttger/contributing-gen).
67+
This Code of Conduct is adapted from the [Contributor Covenant](https://contributor-covenant.org/)
68+
, version [1.4](https://www.contributor-covenant.org/version/1/4/code-of-conduct/code_of_conduct.md)
69+
and [2.0](https://www.contributor-covenant.org/version/2/0/code_of_conduct/code_of_conduct.md)
70+
, and was generated by [contributing-gen](https://github.com/bttger/contributing-gen).

0 commit comments

Comments
 (0)