Skip to content

Commit

Permalink
Install shinycoreci R package from RSPM; Let shinycoreci handle shiny…
Browse files Browse the repository at this point in the history
…verse CRAN repo as extra lib is being used
  • Loading branch information
schloerke committed Mar 14, 2024
1 parent d19b0c8 commit 7fe88c0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/internal/install-shinyverse/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ runs:
# We need to have the first repo to be `shinyverse` repo, then RSPM, then cran-url
# Recreate logic from https://github.com/r-lib/actions/blob/413b6a4ba22b7bcaa726df1c8f88dcd574fbc8c4/setup-r/src/installer.ts#L598-L670
# * Do not set RSPM input (use-public-rspm: false) to make `CRAN` repo the first repo
# * Set CRAN env so that `shinyuniverse` repo is first
# * Append `RSPM` repo in `extra-repositories`; Add backup of `cran-url` in `extra-repositories`
# * Set CRAN env so that `packagemanger` repo is first
# * Add backup of `cran-url` in `extra-repositories`
# * Do not set RSPM envvar pointing to `packagemanager-cran-url` as it will make `RSPM` repo the first repo
- name: Install R and shinycoreci
uses: rstudio/shiny-workflows/setup-r-package@v1
env:
CRAN: ${{ inputs.shinyverse-cran-url }}
CRAN: ${{ inputs.packagemanager-cran-url }}
with:
r-version: ${{ inputs.r-version }}
cache-version: ${{ inputs.cache-version }}
Expand All @@ -100,7 +100,6 @@ runs:
${{ inputs.extra-packages }}
use-public-rspm: false
extra-repositories: |
${{ inputs.packagemanager-cran-url }}
${{ inputs.cran-url }}
- name: Show repos
Expand Down

0 comments on commit 7fe88c0

Please sign in to comment.