From e63b4981e94c303a5f626364f30399cca456d36e Mon Sep 17 00:00:00 2001 From: chiku Date: Tue, 19 May 2026 17:38:36 +0900 Subject: [PATCH] Use `remotes::install_github` directly, not via devtools. --- repo2docker/buildpacks/conda/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/repo2docker/buildpacks/conda/__init__.py b/repo2docker/buildpacks/conda/__init__.py index a3365b9e9..7ec8eda57 100644 --- a/repo2docker/buildpacks/conda/__init__.py +++ b/repo2docker/buildpacks/conda/__init__.py @@ -595,8 +595,9 @@ def get_custom_extension_script(self, post): ) if post: - install_grdm = 'if(\\"devtools\\" %in% rownames(installed.packages())) ' \ - + 'devtools::install_github(\\"RCOSDP/CS-rstudio-grdm\\", type = \\"source\\")' + install_grdm = 'options(repos = c(CRAN = \\"https://cloud.r-project.org/\\")); ' \ + + 'if (!(\\"remotes\\" %in% rownames(installed.packages()))) install.packages(\\"remotes\\"); ' \ + + 'remotes::install_github(\\"RCOSDP/CS-rstudio-grdm\\", type = \\"source\\")' bash_scripts = f""" if [ -x \\"$(command -v R)\\" ]; then R -e '{install_grdm}'; fi """