Skip to content

Commit

Permalink
Merge pull request #20 from yacchin1205/feature/cran-r-project-repo
Browse files Browse the repository at this point in the history
[GRDM-44637] CRANリポジトリの変更
  • Loading branch information
ikfj authored Oct 10, 2024
2 parents c80a33d + ae20a55 commit cc16ff0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion repo2docker/buildpacks/conda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,13 +483,14 @@ def _get_assemble_scripts_for_r(self):
installR_path = self.binder_path("install.R")
if not os.path.exists(installR_path):
return []
repo_url = 'https://cran.ism.ac.jp/'
repo_url = 'https://cloud.r-project.org/'
return [
(
"${NB_USER}",
# Delete any downloaded packages in /tmp, as they aren't reused by R
f"""echo 'r = getOption("repos")' > /tmp/install.R && \
echo 'r["CRAN"] = "{repo_url}"' >> /tmp/install.R && \
echo 'options(warn = 2)' >> /tmp/install.R && \
echo 'options(repos = r)' >> /tmp/install.R && \
cat {installR_path} >> /tmp/install.R && \
Rscript /tmp/install.R && rm -rf /tmp/downloaded_packages""",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_identifier(json):
"requests",
"ruamel.yaml>=0.15",
"semver",
"osfclient @ git+https://github.com/RCOSDP/rdmclient.git",
"osfclient @ git+https://github.com/RCOSDP/rdmclient.git@ab531e89148c4af48e4e1f123edc8e35690f31bc",
"toml",
"traitlets",
"beautifulsoup4>=4.10.0",
Expand Down

0 comments on commit cc16ff0

Please sign in to comment.