Skip to content

Commit ceb4f8a

Browse files
committed
Hardcode rspm URL as snapshot for IRKernel
1 parent dbb5ff7 commit ceb4f8a

File tree

1 file changed

+5
-4
lines changed
  • repo2docker/buildpacks

1 file changed

+5
-4
lines changed

repo2docker/buildpacks/r.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,11 @@ def get_devtools_snapshot_url(self):
239239
devtools is part of our 'core' base install, so we should have some
240240
control over what version we install here.
241241
"""
242-
# IRKernel gets into CRAN on Nov 16 2018 (https://packagemanager.rstudio.com/client/#/repos/1/packages/IRkernel),
243-
# so we try snapshot to just after that. We use rspm as we want binary packages all the time
244-
# FIXME: Hardcode this to prevent an extra call to the rspm API
245-
return self.get_rspm_snapshot_url(datetime.date(2021, 12, 16))
242+
# Picked from https://packagemanager.rstudio.com/client/#/repos/1/overview
243+
# Hardcoded rather than dynamically determined from a date to avoid extra API calls
244+
# Plus, we can always use packagemanager.rstudio.com here as we always install the
245+
# necessary apt packages.
246+
return "https://packagemanager.rstudio.com/all/__linux__/bionic/2022-01-04+Y3JhbiwyOjQ1MjYyMTU7NzlBRkJEMzg"
246247

247248
def get_build_scripts(self):
248249
"""

0 commit comments

Comments
 (0)