Skip to content

Any R version

Any R version #12

Workflow file for this run

name: Run any R version
on:
workflow_dispatch:
inputs:
rversion:
description: |
R version to run, e.g. 4.4.2. See
https://github.com/r-hub/evercran#list-of-all-containers
for a list of possible values.
required: true
default: '1.0.0'
type: string
jobs:
evercran:
runs-on: ubuntu-latest
steps:
- name: Start container
run: |
docker run --rm -d --name evercran ghcr.io/r-hub/evercran/${{ inputs.rversion }} sleep 1d
shell: bash
- name: Install compilers
run: |
if dpkg --compare-versions '${{ inputs.rversion }}' le '1.2.3'; then
docker exec -i evercran sh - <<EOF
apt-get update
apt-get install -y gcc-2.95 g++-2.95 g77-2.95 libc-dev perl-modules libg2c0-dev make
EOF
fi
shell: bash
- name: Start tmate
uses: r-hub/action-tmate@master
with:
limit-access-to-actor: true
connect-timeout-seconds: '600'
start-command: 'docker exec -ti evercran R'
default-command: 'docker exec -ti evercran bash'