File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 9
9
from ._r_base import rstudio_base_scripts
10
10
from .python import PythonBuildPack
11
11
12
+ # Aproximately the first snapshot on RSPM (Posit package manager)
13
+ # that seems to have a working IRKernel.
14
+ RSPM_CUTOFF_DATE = datetime .datetime (2018 , 12 , 7 )
12
15
13
16
class RBuildPack (PythonBuildPack ):
14
17
"""
@@ -265,6 +268,12 @@ def get_build_scripts(self):
265
268
We set the snapshot date used to install R libraries from based on the
266
269
contents of runtime.txt.
267
270
"""
271
+ if self .checkpoint_date < RSPM_CUTOFF_DATE :
272
+ raise RuntimeError (
273
+ f'Microsoft killed MRAN, the source of R package snapshots before { RSPM_CUTOFF_DATE .strptime ("%Y-%m-%d" )} . ' \
274
+ f'This repo has a snapshot date of { self .checkpoint_date .strftime ("%Y-%m-%d" )} specified in runtime.txt. ' \
275
+ 'Please use a newer snapshot date'
276
+ )
268
277
269
278
cran_mirror_url = self .get_rspm_snapshot_url (self .checkpoint_date )
270
279
You can’t perform that action at this time.
0 commit comments