kopia lustrzana https://github.com/jupyterhub/repo2docker
Use testthat, rather than tinytest
tinytest doesn't exist in older MRAN snapshotspull/1118/head
rodzic
f6737cfff5
commit
9066d079d0
|
@ -1,3 +1,3 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
- r-base=3.6
|
- r-base=3.6
|
||||||
- r-tinytest
|
- r-testthat
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
jupyter serverextension list 2>&1 | grep jupyter_server_proxy
|
jupyter serverextension list 2>&1 | grep jupyter_server_proxy
|
||||||
jupyter nbextension list 2>&1 | grep jupyter_server_proxy
|
jupyter nbextension list 2>&1 | grep jupyter_server_proxy
|
||||||
R -e "library('tinytest')"
|
R -e "library('testthat')"
|
||||||
# Fail if version is not 3.6
|
# Fail if version is not 3.6
|
||||||
R -e 'if (!(version$major == "3" && as.double(version$minor) >= 6 && as.double(version$minor) < 7)) quit("yes", 1)'
|
R -e 'if (!(version$major == "3" && as.double(version$minor) >= 6 && as.double(version$minor) < 7)) quit("yes", 1)'
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
install.packages("tinytest")
|
install.packages("testthat")
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env Rscript
|
#!/usr/bin/env Rscript
|
||||||
library('tinytest')
|
library('testthat')
|
||||||
|
|
||||||
print(version)
|
print(version)
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
install.packages("tinytest")
|
install.packages("testthat")
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env Rscript
|
#!/usr/bin/env Rscript
|
||||||
library('tinytest')
|
library('testthat')
|
||||||
|
|
||||||
print(version)
|
print(version)
|
||||||
# Fail if version is not 3.6
|
# Fail if version is not 3.6
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
install.packages("tinytest")
|
install.packages("testthat")
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env Rscript
|
#!/usr/bin/env Rscript
|
||||||
library('tinytest')
|
library('testthat')
|
||||||
|
|
||||||
print(version)
|
print(version)
|
||||||
# Fail if version is not 4.0
|
# Fail if version is not 4.0
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
install.packages("tinytest")
|
install.packages("testthat")
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env Rscript
|
#!/usr/bin/env Rscript
|
||||||
library('tinytest')
|
library('testthat')
|
||||||
|
|
||||||
print(version)
|
print(version)
|
||||||
# Fail if version is not 4.0
|
# Fail if version is not 4.0
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
install.packages("tinytest")
|
install.packages("testthat")
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env Rscript
|
#!/usr/bin/env Rscript
|
||||||
library('tinytest')
|
library('testthat')
|
||||||
|
|
||||||
# Fail if version is not 4.1
|
# Fail if version is not 4.1
|
||||||
if (!(version$major == "4" && as.double(version$minor) >= 1 && as.double(version$minor) < 2)) {
|
if (!(version$major == "4" && as.double(version$minor) >= 1 && as.double(version$minor) < 2)) {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
install.packages("tinytest")
|
install.packages("testthat")
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env Rscript
|
#!/usr/bin/env Rscript
|
||||||
library('tinytest')
|
library('testthat')
|
||||||
|
|
||||||
# Fail if version is not 4.1
|
# Fail if version is not 4.1
|
||||||
if (!(version$major == "4" && as.double(version$minor) >= 1 && as.double(version$minor) < 2)) {
|
if (!(version$major == "4" && as.double(version$minor) >= 1 && as.double(version$minor) < 2)) {
|
||||||
|
|
Ładowanie…
Reference in New Issue