-
My package My package GitHub actions fail for Windows when building Now I am wondering how to specify in my own package that the remote dependency is from the r-universe. I have tried the following: Suggests:
[...]
remotes,
openxlsx2,
Remotes:
r-universe::JanMarvin/openxlsx2 But it fails: Error: Error: <callr_remote_error: Cannot install packages:
* deps::.: Unknown remote type(s): `r-universe`> Is it even possible to do what I am describing? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
R-universe will automatically add all external dependencies from remotes to your repository. There is nothing you need to do. I see that both |
Beta Was this translation helpful? Give feedback.
-
Oh I'm sorry, I just created my r-universe repo because I think the idea is super cool! But the issue is unrelated to my own r-universe repo (it was before I created my own r-universe repo). Rather, I am looking to get rid of the GitHub actions error. If you look at my package readme on GitHub, you will see that the badge is red, indicating failing tests: https://github.com/rempsyc/rempsyc. Actually I can just paste the badge here and it works (nice, even better!): In order to get rid of the error, I would like GitHub actions to install the other package ( Remotes:
r-universe::JanMarvin/openxlsx2 But it seems like that is not working, possibly because the Edit: For example, is there any way to specify repo options from within the package itself so that it's picked up automatically by GitHub actions?
|
Beta Was this translation helpful? Give feedback.
-
CONFIRMED solution:actions/setup-r-dependencies at v2 · r-lib/actions · GitHub
So I had to add the
|
Beta Was this translation helpful? Give feedback.
CONFIRMED solution:
actions/setup-r-dependencies at v2 · r-lib/actions · GitHub
So I had to add the
extra-repositories: "https://janmarvin.r-universe.dev"
line afterwith
in the- uses: r-lib/actions/setup-r@v2
line, so it looks like this in theR-CMD-check.yaml
workflow file: