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

Move to using posit package manager before July as MRAN becomes obsolete #71

Open
annakrystalli opened this issue Feb 9, 2023 · 2 comments

Comments

@annakrystalli
Copy link
Contributor

As of July MRAN will be obsolete.

Need to move to using posit package manager: https://packagemanager.rstudio.com/client/#/

Shouldn't be too much effort, probably just one line in the write_dockerfile function. Having said that, given packager manager does not take daily snapshot, I'm unsure how to handle dates where there is no snapshot.

@annakrystalli
Copy link
Contributor Author

The setting of the repos option needs to change to options(repos='https://packagemanager.rstudio.com/cran/__linux__/focal/{date})' but some quick experimentation on binder showed that installation failed if there is no snapshot on the given date.

@zuphilip
Copy link

zuphilip commented Feb 13, 2023

@annakrystalli Can we not replace this whole GitHub call in write_dockerfile with the following line?

RUN if [ -f install.R ]; then R --quiet -f install.R; fi

Thereby this will already use the RStudio Public Package Manager (for R>=4.0) and moreover (if I understand it correctly) the versions from a past snapshot of the package directory are used then.

Then no DESCRIPTION file might be needed but the file install.R can be used for any additional R package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants