Skip to content

Commit f6737cf

Browse files
committed
Use a smaller R library in our tests
ggplot2 is a big library with a bunch of dependencies, making our already slow R tests even slower. This PR switches them to using the tinytest library, which has no dependencies and is much smaller.
1 parent bf99b93 commit f6737cf

File tree

14 files changed

+15
-15
lines changed

14 files changed

+15
-15
lines changed

tests/conda/r3.6/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
dependencies:
22
- r-base=3.6
3-
- r-ggplot2
3+
- r-tinytest

tests/conda/r3.6/verify

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
jupyter serverextension list 2>&1 | grep jupyter_server_proxy
44
jupyter nbextension list 2>&1 | grep jupyter_server_proxy
5-
R -e "library('ggplot2')"
5+
R -e "library('tinytest')"
66
# Fail if version is not 3.6
7-
R -e 'if (!(version$major == "3" && as.double(version$minor) >= 6 && as.double(version$minor) < 7)) quit("yes", 1)'
7+
R -e 'if (!(version$major == "3" && as.double(version$minor) >= 6 && as.double(version$minor) < 7)) quit("yes", 1)'

tests/r/mran/install.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
install.packages("ggplot2")
1+
install.packages("tinytest")

tests/r/mran/verify

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env Rscript
2-
library('ggplot2')
2+
library('tinytest')
33

44
print(version)
55

tests/r/r3.6/install.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
install.packages("ggplot2")
1+
install.packages("tinytest")

tests/r/r3.6/verify

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env Rscript
2-
library('ggplot2')
2+
library('tinytest')
33

44
print(version)
55
# Fail if version is not 3.6

tests/r/r4.0-rspm/install.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
install.packages("ggplot2")
1+
install.packages("tinytest")

tests/r/r4.0-rspm/verify

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env Rscript
2-
library('ggplot2')
2+
library('tinytest')
33

44
print(version)
55
# Fail if version is not 4.0

tests/r/r4.0/install.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
install.packages("ggplot2")
1+
install.packages("tinytest")

tests/r/r4.0/verify

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env Rscript
2-
library('ggplot2')
2+
library('tinytest')
33

44
print(version)
55
# Fail if version is not 4.0

0 commit comments

Comments
 (0)