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

Improve UI for installing custom binaries on Linux / WebAssembly #549

Open
JosiahParry opened this issue Dec 10, 2024 · 3 comments
Open

Comments

@JosiahParry
Copy link

Using rocker/r-ver:4.4.2 which uses noble, binaries are not installed.

Heres a sample dockerfile

FROM rocker/r-ver:4.4.2

RUN R -e 'install.packages("arcgisutils", repos = c("https://r-arcgis.r-universe.dev", options("repos")))'

ENTRYPOINT [ "R" ]

when running R and then trying to load the package it isn't found because the install.packages step failed.

The package reportedly has binaries for 4.4.2 shown at https://r-arcgis.r-universe.dev/arcgisutils

Running install.packages("https://r-arcgis.r-universe.dev/bin/linux/noble/4.4/src/contrib/arcgisutils_0.3.1.tar.gz") does work as anticipated though.

How can we install linux binaries by using the repos argument?

@remlapmot
Copy link
Contributor

You've basically answered your own question.

You need to specify the Linux binary URL in the repos argument. Like in the example in the docs https://docs.r-universe.dev/install/binaries.html, e.g.

install.packages("arcgisutils", repos = c("https://r-arcgis.r-universe.dev/bin/linux/noble/4.4"))

(nb. your call to options() seems misplaced in your Dockerfile code)

@JosiahParry
Copy link
Author

I’ll give that a further read. Thanks!
The options is properly placed. It uses the provided repos urls (posit package manager) from the container as fallback repos

@JosiahParry
Copy link
Author

Thanks for the guidance! It would be great if the UI gave guidance here.

I injected some shoddy html into the web page to illustrate what I mean:

image

Posit Package Manager also has a setup page that helps with this which I think might be nice to draw inspiration from: https://p3m.dev/client/#/repos/cran/setup

@jeroen jeroen changed the title Ubuntu 24 bianries not installed on ubuntu 24 Improve UI for installing custom binaries on Linux / WebAssembly Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants