holepunch icon indicating copy to clipboard operation
holepunch copied to clipboard

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

Open annakrystalli opened this issue 2 years ago • 2 comments

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 avatar Feb 09 '23 17:02 annakrystalli

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.

annakrystalli avatar Feb 10 '23 10:02 annakrystalli

@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.

zuphilip avatar Feb 13 '23 22:02 zuphilip