r-universe-org / help

Support and bug tracker for R-universe
https://docs.r-universe.dev/
8 stars 2 forks source link

Can I specify an additional repository in which R-universe will look for dependencies? #285

Closed etiennebacher closed 10 months ago

etiennebacher commented 10 months ago

Hi there!

One of my packages (tidypolars) has some build failures because I don't know how to specify the repos it should look into when downloading dependencies.

Basically, here's what happens:

Problem: since polars is not in the Remotes field, the R-universe workflow tries to find it on CRAN and obviously fails.

I think the easiest way to fix the builds for tidypolars on R-universe would be to enable https://rpolars.r-universe.dev (or its Ubuntu variant) when it is looking for dependencies. Is it possible to do so?

I guess that putting polars in Remotes would work as well but it would drastically increase the build time both on my workflows and R-universe workflows since it would need to compile polars from scratch.

Thank you!

jeroen commented 10 months ago

The easiest way is adding a copy of polars to your universe by adding it to your packages.json. This way the binaries are automatically used when building tidypolars.

Op di 15 aug. 2023 11:42 schreef Etienne Bacher @.***>:

Hi there!

One of my packages (tidypolars https://etiennebacher.r-universe.dev/tidypolars#) has some build failures because I don't know how to specify the repos it should look into when downloading dependencies.

Basically, here's what happens:

Problem: since polars is not in the Remotes field, the R-universe workflow tries to find it on CRAN and obviously fails https://github.com/r-universe/etiennebacher/actions/runs/5865468592/job/15902455283 .

I think the easiest way to fix the builds for tidypolars on R-universe would be to enable https://rpolars.r-universe.dev (or its Ubuntu variant) when it is looking for dependencies. Is it possible to do so?

I guess that putting polars in Remotes would work as well but it would drastically increase the build time both on my workflows and R-universe workflows since it would need to compile polars from scratch.

Thank you!

— Reply to this email directly, view it on GitHub https://github.com/r-universe-org/help/issues/285, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABUZ76Q3A2Z76A4OWMJ6BDXVM77HANCNFSM6AAAAAA3Q2423Y . You are receiving this because you are subscribed to this thread.Message ID: @.***>

etiennebacher commented 10 months ago

Awesome, it works, thank you