Skip to content

Commit

Permalink
Merge pull request #7 from milanmlft/fix-bioc-version
Browse files Browse the repository at this point in the history
Set `R_BIOC_VERSION` env variable used by pak
  • Loading branch information
grimbough authored Oct 20, 2022
2 parents 143b02e + 9f12ec8 commit 8ded1d6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions setup-bioc/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,27 @@ runs:
echo "r-version=$(echo ${RVERSION})" >> $GITHUB_OUTPUT
echo "rtools-version=$(echo ${RTOOLS})" >> $GITHUB_OUTPUT
echo "bioc-version=$(echo ${BIOCVERSION})" >> $GITHUB_OUTPUT
echo "R_BIOC_VERSION=${BIOCVERSION}" >> $GITHUB_ENV
shell: bash

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ steps.find-versions.outputs.r-version }}
Ncpus: ${{ inputs.Ncpus }}
use-public-rspm: ${{ inputs.use-public-rspm }}
rtools-version: ${{ steps.find-versions.outputs.rtools-version }}

- name: Download Renviron
run: |
download.file('https://bioconductor.org/checkResults/${{ inputs.bioc-version }}/bioc-LATEST/Renviron.bioc', destfile = '~/.Renviron', mode = 'wb')
shell: Rscript {0}

- name: Setting Bioconductor mirror
run: |
write('options(BioC_mirror = "${{ inputs.bioc-mirror }}")', file = '~/.Rprofile', append = TRUE)
shell: Rscript {0}

- name: Install and initialize BiocManager
run: |
install.packages(c("BiocManager", "remotes"), quiet = TRUE)
Expand Down

0 comments on commit 8ded1d6

Please sign in to comment.