-
Notifications
You must be signed in to change notification settings - Fork 232
Closed
Labels
featurea feature request or enhancementa feature request or enhancement
Description
Is your feature request related to a problem? Please describe.
The action r-lib/actions/setup-renv supports the working-directory input. However, it is not not possible to use r-version: renv in r-lib/actions/setup-r when the renv.lock file is not in the main directory.
Describe the solution you'd like
Add support for a working-directory input in r-lib/actions/setup-r, or maybe a lockfile-path to be more precise.
Describe alternatives you've considered
Workaround implies either setting the r version manually or copying the renv.lock file into the main folder before setting up R.
Additional context
Example of how it works now:
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: "4.0.3" #manually set
- name: Setup R dependencies
uses: r-lib/actions/setup-renv@v2
with:
working-directory: ./src #supported inputRequested feature:
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: renv
working-directory: ./src #same as setup-renv
- name: Setup R dependencies
uses: r-lib/actions/setup-renv@v2
with:
working-directory: ./src Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featurea feature request or enhancementa feature request or enhancement