Skip to content
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

[FEATURE] Disable default mirror for installation of R dependencies in docker #773

Open
2 tasks done
kverstae opened this issue Oct 3, 2024 · 0 comments
Open
2 tasks done
Labels
enhancement New feature or request

Comments

@kverstae
Copy link

kverstae commented Oct 3, 2024

Feature summary

When you currently install R dependencies in a container via the viash config, it uses the mirror "https://cran.rstudio.com" (set here)
It would be useful if we could disable this behavior (so using the default mirror) or provide a mirror ourselves.

Why is this feature beneficial?

When you create a container based on rocker/r-ver, you don't want to overwrite the mirror used during installation. These containers use a specific mirror where the packages are locked in a specific version. This makes them very reproducible, since install.packages will always install the same version.
When overwriting the mirror, you lose this reproducibility, since it will try to download the most recent version available instead from the cran.rstudio mirror.

Alternatives considered

It is currently possible to work around this issue, but the solution is not very elegant. You can just pass the install commands via the script requirement instead:

- type: r
     script: install.packages("remotes"); remotes::install_github("powellgenomicslab/DropletQC")

This works, but can become messy if you need to install a lot of dependencies...

Possible solution

Maybe repos = "https://cran.rstudio.com" can just be omitted from the install_... commands for R dependencies?

Confirmation

  • I have searched the existing issues to make sure this is not a duplicate request.
  • I have provided clear and concise information about the feature.
@kverstae kverstae added the enhancement New feature or request label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant