@@ -22,8 +22,8 @@ class RBuildPack(PythonBuildPack):
22
22
23
23
Where 'year', 'month' and 'date' refer to a specific
24
24
date whose CRAN snapshot we will use to fetch packages.
25
- Uses https://packagemanager.rstudio.com , or MRAN if no snapshot
26
- is found on packagemanager.rstudio.com
25
+ Uses https://packagemanager.posit.co , or MRAN if no snapshot
26
+ is found on packagemanager.posit.co
27
27
28
28
2. A `DESCRIPTION` file signaling an R package
29
29
@@ -204,7 +204,7 @@ def get_packages(self):
204
204
def get_rspm_snapshot_url (self , snapshot_date , max_days_prior = 7 ):
205
205
for i in range (max_days_prior ):
206
206
snapshots = requests .post (
207
- "https://packagemanager.rstudio.com /__api__/url" ,
207
+ "https://packagemanager.posit.co /__api__/url" ,
208
208
# Ask for midnight UTC snapshot
209
209
json = {
210
210
"repo" : "all" ,
@@ -216,11 +216,11 @@ def get_rspm_snapshot_url(self, snapshot_date, max_days_prior=7):
216
216
# Construct a snapshot URL that will give us binary packages for Ubuntu Bionic (18.04)
217
217
if "upsi" in snapshots :
218
218
return (
219
- "https://packagemanager.rstudio.com /all/__linux__/bionic/"
219
+ "https://packagemanager.posit.co /all/__linux__/bionic/"
220
220
+ snapshots ["upsi" ]
221
221
)
222
222
raise ValueError (
223
- "No snapshot found for {} or {} days prior in packagemanager.rstudio.com " .format (
223
+ "No snapshot found for {} or {} days prior in packagemanager.posit.co " .format (
224
224
snapshot_date .strftime ("%Y-%m-%d" ), max_days_prior
225
225
)
226
226
)
@@ -229,7 +229,7 @@ def get_rspm_snapshot_url(self, snapshot_date, max_days_prior=7):
229
229
def get_mran_snapshot_url (self , snapshot_date , max_days_prior = 7 ):
230
230
for i in range (max_days_prior ):
231
231
try_date = snapshot_date - datetime .timedelta (days = i )
232
- # Fall back to MRAN if packagemanager.rstudio.com doesn't have it
232
+ # Fall back to MRAN if packagemanager.posit.co doesn't have it
233
233
url = f"https://mran.microsoft.com/snapshot/{ try_date .isoformat ()} "
234
234
r = requests .head (url )
235
235
if r .ok :
@@ -258,11 +258,11 @@ def get_devtools_snapshot_url(self):
258
258
devtools is part of our 'core' base install, so we should have some
259
259
control over what version we install here.
260
260
"""
261
- # Picked from https://packagemanager.rstudio.com /client/#/repos/1/overview
261
+ # Picked from https://packagemanager.posit.co /client/#/repos/1/overview
262
262
# Hardcoded rather than dynamically determined from a date to avoid extra API calls
263
- # Plus, we can always use packagemanager.rstudio.com here as we always install the
263
+ # Plus, we can always use packagemanager.posit.co here as we always install the
264
264
# necessary apt packages.
265
- return "https://packagemanager.rstudio.com /all/__linux__/bionic/2022-01-04+Y3JhbiwyOjQ1MjYyMTU7NzlBRkJEMzg"
265
+ return "https://packagemanager.posit.co /all/__linux__/bionic/2022-01-04+Y3JhbiwyOjQ1MjYyMTU7NzlBRkJEMzg"
266
266
267
267
@lru_cache ()
268
268
def get_build_scripts (self ):
0 commit comments