|
1 | | -pkgs = c("ggplot2", "hexbin", "plyr", "dplyr", "caret", "zoo", "xts", "gdata", "nlme", "bit64", "knitr", "parallel", "sf", "nanotime", "R.utils", "yaml") |
| 1 | +pkgs = c("bit64", "caret", "dplyr", "gdata", "ggplot2", "hexbin", "knitr", "nanotime", "nlme", "parallel", "plyr", "R.utils", "sf", "vctrs", "xts", "yaml", "zoo") |
2 | 2 | # First expression of this file must be as above: .gitlab-ci.yml uses parse(,n=1L) to read one expression from this file and installs pkgs. |
3 | 3 | # So that these dependencies of other.Rraw are maintained in a single place. |
4 | 4 | # TEST_DATA_TABLE_WITH_OTHER_PACKAGES is off by default so this other.Rraw doesn't run on CRAN. It is run by GLCI, locally in dev, and by |
@@ -221,6 +221,7 @@ test(14.2, {example('CJ', package='data.table', local=TRUE, echo=FALSE); TRUE}) |
221 | 221 | if (loaded[["sf"]]) { #2273 |
222 | 222 | DT = as.data.table(st_read(system.file("shape/nc.shp", package = "sf"), quiet=TRUE)) |
223 | 223 | test(15, DT[1:3, .(NAME, FIPS, geometry)], output="Ashe.*-81.4.*Surry.*-80.4") |
| 224 | + test(15.1, DT, output="MULTIPOLYGON (((") # make sure individual list items are formatted, #6637, #5224 |
224 | 225 |
|
225 | 226 | dsf = sf::st_as_sf(data.table(x=1:10, y=1:10, s=sample(1:2, 10, TRUE)), coords=1:2) |
226 | 227 | test(16, split(dsf, dsf$s), list(`1` = dsf[dsf$s == 1, ], `2` = dsf[dsf$s == 2, ])) |
@@ -774,3 +775,9 @@ if (loaded[["nanotime"]]) { |
774 | 775 | res <- tables(env=.e) |
775 | 776 | test(32, res[, .(NAME,NROW,NCOL,MB)], data.table(NAME="DT",NROW=20000000L,NCOL=15L,MB=2288.0)) |
776 | 777 | rm(.e, res) |
| 778 | + |
| 779 | +if (loaded[["vctrs"]]) { |
| 780 | + # vctrs::list_of() columns are treated the same as other list() columns |
| 781 | + DT = data.table(a = 1, b = list_of(mtcars)) |
| 782 | + test(33, DT, output="<vctrs_list_of>.*<data\\.frame\\[32x11\\]>") |
| 783 | +} |
0 commit comments