Skip to content

Commit b4088ea

Browse files
authored
Merge pull request #2316 from yuvipanda/new-hub
Fix Rprofile.site to point to correct mirror
2 parents 9ffe330 + 820d4ee commit b4088ea

File tree

14 files changed

+63
-33
lines changed

14 files changed

+63
-33
lines changed
Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
local({
2-
r <- getOption("repos")
3-
r["CRAN"] <- "https://packagemanager.rstudio.com/all/__linux__/focal/latest"
4-
options(repos = r)
5-
options(HTTPUserAgent = sprintf("R/%s R (%s)", getRversion(), paste(getRversion(), R.version$platform, R.version$arch, R.version$os)))
6-
})
1+
# Use RStudio's CRAN mirror to get binary packages
2+
# 'latest' just means it has all available versions.
3+
# We can specify version numbers in devtools::install_version
4+
options(repos = c(CRAN = "https://packagemanager.rstudio.com/all/__linux__/focal/latest"))
5+
6+
# RStudio's CRAN mirror needs this to figure out which binary package to serve.
7+
# If not set properly, it will just serve up source packages
8+
# Quite hilarious, IMO.
9+
# See https://docs.rstudio.com/rspm/admin/binaries.html
10+
options(HTTPUserAgent = sprintf("R/%s R (%s)", getRversion(), paste(getRversion(), R.version$platform, R.version$arch, R.version$os)))

deployments/biology/image/infra-requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ notebook==6.2.0
1515
# someone opens a notebook created w/ nbformat>=5.1.0. is it possible to pin
1616
# below 5.1.0 while notebook patches this?
1717
nbformat<5.1.0
18-
jupyterlab==3.0.11
18+
# Pin for https://github.com/jupyter/jupyter-packaging/issues/81
19+
setuptools>=56.0
20+
jupyterlab==3.0.14
1921
nbgitpuller==0.9.0
2022
jupyter-resource-usage==0.5.1
2123
jupyterhub==1.3.0
@@ -26,4 +28,4 @@ jupyter-tree-download==1.0.1
2628
git-credential-helpers==0.2
2729
# Enough people like this, let's load it in.
2830
jupyter-contrib-nbextensions==0.5.1
29-
jupyter_nbextensions_configurator==0.4.1
31+
jupyter_nbextensions_configurator==0.4.1

deployments/data8x/image/infra-requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ notebook==6.2.0
1515
# someone opens a notebook created w/ nbformat>=5.1.0. is it possible to pin
1616
# below 5.1.0 while notebook patches this?
1717
nbformat<5.1.0
18-
jupyterlab==3.0.11
18+
# Pin for https://github.com/jupyter/jupyter-packaging/issues/81
19+
setuptools>=56.0
20+
jupyterlab==3.0.14
1921
nbgitpuller==0.9.0
2022
jupyter-resource-usage==0.5.1
2123
jupyterhub==1.3.0
@@ -26,4 +28,4 @@ jupyter-tree-download==1.0.1
2628
git-credential-helpers==0.2
2729
# Enough people like this, let's load it in.
2830
jupyter-contrib-nbextensions==0.5.1
29-
jupyter_nbextensions_configurator==0.4.1
31+
jupyter_nbextensions_configurator==0.4.1

deployments/datahub/images/default/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ RUN jlpm cache dir && mkdir -p /tmp/yarncache && \
228228
jupyter labextension install --debug \
229229
@jupyterlab/server-proxy \
230230
jupyterlab-plotly@4.14.3 plotlywidget@4.14.3 \
231-
@jupyterlab/geojson-extension && \
232231
rm -rf /tmp/yarncache
233232

234233
RUN pip install --no-cache numpy==1.19.5 cython==0.29.21
Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
local({
2-
r <- getOption("repos")
3-
r["CRAN"] <- "https://packagemanager.rstudio.com/all/__linux__/focal/latest"
4-
options(repos = r)
5-
options(HTTPUserAgent = sprintf("R/%s R (%s)", getRversion(), paste(getRversion(), R.version$platform, R.version$arch, R.version$os)))
6-
})
1+
# Use RStudio's CRAN mirror to get binary packages
2+
# 'latest' just means it has all available versions.
3+
# We can specify version numbers in devtools::install_version
4+
options(repos = c(CRAN = "https://packagemanager.rstudio.com/all/__linux__/focal/latest"))
5+
6+
# RStudio's CRAN mirror needs this to figure out which binary package to serve.
7+
# If not set properly, it will just serve up source packages
8+
# Quite hilarious, IMO.
9+
# See https://docs.rstudio.com/rspm/admin/binaries.html
10+
options(HTTPUserAgent = sprintf("R/%s R (%s)", getRversion(), paste(getRversion(), R.version$platform, R.version$arch, R.version$os)))

deployments/datahub/images/default/infra-requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ notebook==6.2.0
1515
# someone opens a notebook created w/ nbformat>=5.1.0. is it possible to pin
1616
# below 5.1.0 while notebook patches this?
1717
nbformat<5.1.0
18-
jupyterlab==3.0.11
18+
# Pin for https://github.com/jupyter/jupyter-packaging/issues/81
19+
setuptools>=56.0
20+
jupyterlab==3.0.14
1921
nbgitpuller==0.9.0
2022
jupyter-resource-usage==0.5.1
2123
jupyterhub==1.3.0
@@ -26,4 +28,4 @@ jupyter-tree-download==1.0.1
2628
git-credential-helpers==0.2
2729
# Enough people like this, let's load it in.
2830
jupyter-contrib-nbextensions==0.5.1
29-
jupyter_nbextensions_configurator==0.4.1
31+
jupyter_nbextensions_configurator==0.4.1

deployments/datahub/images/default/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,3 +206,6 @@ dbt==0.19.1
206206

207207
# ESPM 167 - https://github.com/berkeley-dsep-infra/datahub/issues/2278
208208
contextily==1.1.0
209+
210+
# JupyterLab pypi extensions
211+
jupyterlab-geojson==3.1.2

deployments/dlab/image/infra-requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ notebook==6.2.0
1515
# someone opens a notebook created w/ nbformat>=5.1.0. is it possible to pin
1616
# below 5.1.0 while notebook patches this?
1717
nbformat<5.1.0
18-
jupyterlab==3.0.11
18+
# Pin for https://github.com/jupyter/jupyter-packaging/issues/81
19+
setuptools>=56.0
20+
jupyterlab==3.0.14
1921
nbgitpuller==0.9.0
2022
jupyter-resource-usage==0.5.1
2123
jupyterhub==1.3.0
@@ -26,4 +28,4 @@ jupyter-tree-download==1.0.1
2628
git-credential-helpers==0.2
2729
# Enough people like this, let's load it in.
2830
jupyter-contrib-nbextensions==0.5.1
29-
jupyter_nbextensions_configurator==0.4.1
31+
jupyter_nbextensions_configurator==0.4.1

deployments/eecs/image/infra-requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ notebook==6.2.0
1515
# someone opens a notebook created w/ nbformat>=5.1.0. is it possible to pin
1616
# below 5.1.0 while notebook patches this?
1717
nbformat<5.1.0
18-
jupyterlab==3.0.11
18+
# Pin for https://github.com/jupyter/jupyter-packaging/issues/81
19+
setuptools>=56.0
20+
jupyterlab==3.0.14
1921
nbgitpuller==0.9.0
2022
jupyter-resource-usage==0.5.1
2123
jupyterhub==1.3.0
@@ -26,4 +28,4 @@ jupyter-tree-download==1.0.1
2628
git-credential-helpers==0.2
2729
# Enough people like this, let's load it in.
2830
jupyter-contrib-nbextensions==0.5.1
29-
jupyter_nbextensions_configurator==0.4.1
31+
jupyter_nbextensions_configurator==0.4.1

deployments/julia/image/infra-requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ notebook==6.2.0
1515
# someone opens a notebook created w/ nbformat>=5.1.0. is it possible to pin
1616
# below 5.1.0 while notebook patches this?
1717
nbformat<5.1.0
18-
jupyterlab==3.0.11
18+
# Pin for https://github.com/jupyter/jupyter-packaging/issues/81
19+
setuptools>=56.0
20+
jupyterlab==3.0.14
1921
nbgitpuller==0.9.0
2022
jupyter-resource-usage==0.5.1
2123
jupyterhub==1.3.0
@@ -26,4 +28,4 @@ jupyter-tree-download==1.0.1
2628
git-credential-helpers==0.2
2729
# Enough people like this, let's load it in.
2830
jupyter-contrib-nbextensions==0.5.1
29-
jupyter_nbextensions_configurator==0.4.1
31+
jupyter_nbextensions_configurator==0.4.1

0 commit comments

Comments
 (0)