Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set R_BIOC_VERSION env variable used by pak #7

Merged
merged 2 commits into from
Oct 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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