kopia lustrzana https://github.com/jupyterhub/repo2docker
Merge pull request #1141 from minrk/r-version
handle r version being unspecified in environment.ymlpull/1147/head
commit
ec993498ab
|
@ -14,7 +14,7 @@ def rstudio_base_scripts(r_version):
|
|||
shiny_proxy_version = "1.1"
|
||||
shiny_sha256sum = "80f1e48f6c824be7ef9c843bb7911d4981ac7e8a963e0eff823936a8b28476ee"
|
||||
|
||||
if V(r_version) <= V("4.1"):
|
||||
if r_version and V(r_version) <= V("4.1"):
|
||||
# Older RStudio and jupyter-rsession-proxy for v4.1 and below
|
||||
rstudio_url = "https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.3.959-amd64.deb"
|
||||
rstudio_sha256sum = (
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
dependencies:
|
||||
- r-base
|
||||
- r-ggplot2
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
jupyter serverextension list 2>&1 | grep jupyter_server_proxy
|
||||
jupyter nbextension list 2>&1 | grep jupyter_server_proxy
|
||||
R -e "library('ggplot2')"
|
||||
# Fail if version is not at least 4.1
|
||||
R -e 'if (!(version$major == "4" && as.double(version$minor) >= 1)) quit("yes", 1)'
|
Ładowanie…
Reference in New Issue