-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'devel' into update/docs # Conflicts: # docs/tutorials/multi_r_compilation.md
- Loading branch information
Showing
20 changed files
with
255 additions
and
199 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Set site library for full use of VSCode-R extension. | ||
# This is where packages required by VSCode-R extension are installed, specifically | ||
# - jsonlite and rlang for R Session Watcher (needed to open HTML help pages) | ||
# - languageserver for code completion | ||
# - httpgd for http graphics device | ||
# These are built and installed for the default R version when container is built. | ||
|
||
.Library.site <- "/usr/local/lib/R/site-library" | ||
# .libPaths() already includes site library for default R version. | ||
.libPaths(c(.libPaths(), .Library.site)) | ||
|
||
# For PNG graphics uncomment following lines | ||
# options(vsc.use_httpgd = FALSE, | ||
# vsc.dev.args = list(width = 800, height = 600)) |
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 |
---|---|---|
@@ -1,64 +1,66 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
name: Build and publish Docker image | ||
|
||
on: | ||
pull_request: | ||
branches: ["devel"] | ||
types: [closed] | ||
paths: | ||
- 'dockerfile' | ||
- 'reinstall-cmake.sh' | ||
|
||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build-and-push-image: | ||
if: ${{github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true}} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Extract version number | ||
run: | | ||
VER=$(cat VERSION) | ||
echo "VERSION=$VER" >> $GITHUB_ENV | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
tags: | | ||
type=ref,event=branch | ||
type=ref,event=pr | ||
type=semver,pattern={{ env.VERSION }} | ||
type=sha | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
push: true | ||
build-args: | | ||
"CONTAINER_VERSION=${{ env.VERSION }}" | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
name: Build and publish Docker image | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: ["devel"] | ||
types: [closed] | ||
paths: | ||
- '.github/workflows/build-and-publish-image.yml' | ||
- 'Dockerfile' | ||
- 'reinstall-cmake.sh' | ||
|
||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build-and-push-image: | ||
if: ${{github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true}} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Extract version number | ||
run: | | ||
VER=$(cat VERSION) | ||
echo "VERSION=$VER" >> $GITHUB_ENV | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ github.repository }} | ||
tags: | | ||
type=ref,event=branch | ||
type=ref,event=pr | ||
type=semver,pattern={{ env.VERSION }} | ||
type=sha | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }} | ||
build-args: | | ||
CONTAINER_VERSION=${{ env.VERSION }} | ||
labels: ${{ steps.meta.outputs.labels }} |
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
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ R-4.1.3.tar.gz | |
R-devel/ | ||
R-devel.tar.gz | ||
/venv | ||
.cache/ | ||
.cache/ | ||
.Rproj.user |
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
File renamed without changes.
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,3 @@ | ||
This file is used as a marker to indicate when a codespace is first opened. | ||
|
||
See `scripts/welcome_message.sh` for use. |
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
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,3 +1,50 @@ | ||
# SVN Help Command | ||
## Checking out a different revision | ||
|
||
svn commands and desc somewhere here | ||
You can check out a specific revision of the R sources with | ||
|
||
```bash | ||
svn checkout -r 1234 https://svn.r-project.org/R/trunk/ $TOP_SRCDIR | ||
``` | ||
|
||
### Finding the last revision that passed check | ||
|
||
Occasionally, the latest revision of the R sources does not pass `make check`. | ||
In this case, it can be a good idea to revert to an earlier revision until the R Core Team have made further updates to fix the issue. | ||
|
||
Visit the [Build from SVN](https://github.com/r-devel/r-svn/actions/workflows/build-svn.yaml) page that summarises attempted builds of R using GitHub actions on the unofficial GitHub mirror. | ||
Find the latest run that completed successfully (green checkmark) and use the commit message to search for the corresponding Subversion revision. | ||
For example, to search the last 10 revisions for the log message "More @apifun and such annotations" | ||
|
||
```bash | ||
cd $TOP_SRCDIR | ||
svn log --limit 10 --search "More @apifun and such annotations" | ||
``` | ||
``` | ||
/workspaces/r-dev-env/svn/r-devel $ svn log --limit 10 --search "More @apifun and such annotations" | ||
------------------------------------------------------------------------ | ||
r86726 | luke | 2024-06-12 18:00:19 +0000 (Wed, 12 Jun 2024) | 2 lines | ||
More @apifun and such annotations. | ||
------------------------------------------------------------------------ | ||
r86723 | luke | 2024-06-11 20:31:36 +0000 (Tue, 11 Jun 2024) | 2 lines | ||
More @apifun and such annotations. | ||
------------------------------------------------------------------------ | ||
``` | ||
|
||
If you have already attempted to build R, you can re-run the make with the version identified in your search as follows: | ||
|
||
``` | ||
svn checkout -r 86726 https://svn.r-project.org/R/trunk/ $TOP_SRCDIR | ||
cd $BUILDDIR | ||
make | ||
make check | ||
``` | ||
|
||
Otherwise, follow the full instructions in [Building R](./building_r.md), updating the svn checkout command to use the required revision. | ||
|
||
## Further Subversion Help | ||
|
||
For further help on Subversion, refer to the online book [Version Control with Subversion](https://svnbook.red-bean.com/). |
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
Oops, something went wrong.