-
Notifications
You must be signed in to change notification settings - Fork 217
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
setup-r-dependencies: document 'pak-version: none', add 'repo' #919
Conversation
'repo' is a better option for environments like in #918.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## v2-branch #919 +/- ##
==========================================
Coverage 84.61% 84.61%
==========================================
Files 3 3
Lines 13 13
==========================================
Hits 11 11
Misses 2 2 ☔ View full report in Codecov by Sentry. |
Is it possible to use - name: pre-install pak
run: |
install.packages("pak", repos = "https://r-lib.r-universe.dev")
shell: Rscript {0}
- uses: r-lib/actions/setup-r-dependencies@feature/pak-from-repo
with:
extra-packages: any::rcmdcheck
needs: check
pak-version: none |
It defaults to |
So why does it fail above? |
Because you didn't install it there:
You need to install it in |
Why would you pre-install it, though, if you have access to the default repo that |
I have a number of workflows that do this, e.g. for FreeBSD: And the action that sets up the VM pre-installs pak: Although the last one is probably not needed, because it is the default, anyway. |
Just trying to test what I thought was the intended use case of Not sure why we would need a third package library |
Because installing it into the user library causes issues if a package depends on pak, and needs a different version. Installing it into the system library causes permission issues on some systems. |
Thanks for the testing! |
This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this pull request. |
'repo' is a better option for environments like in #918.