@@ -19,86 +19,88 @@ jobs:
1919 steps :
2020 - uses : actions/checkout@v4
2121 - uses : DeterminateSystems/nix-installer-action@main
22- - uses : DeterminateSystems/magic-nix-cache-action@main
22+ - uses : cachix/cachix-action@v15
23+ with :
24+ name : rstats-on-nix
2325
2426 - name : Check tree health
2527 run : nix-build --max-jobs 1 --cores 2 health.nix
2628
2729
28- # - name: Test tidyverse
29- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"tidyverse\", glimpse(mtcars))'"
30+ - name : Test tidyverse
31+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"tidyverse\", glimpse(mtcars))'"
3032
31- # - name: Test arrow
32- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"arrow\", { write_feather(mtcars, \"mtcars.feather\"); read_feather(\"mtcars.feather\") })'"
33+ - name : Test arrow
34+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"arrow\", { write_feather(mtcars, \"mtcars.feather\"); read_feather(\"mtcars.feather\") })'"
3335
34- # - name: Test duckdb
35- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"duckdb\", { con <- dbConnect(duckdb()); dbWriteTable(con, \"mtcars\", mtcars); dbDisconnect(con) })'"
36+ - name : Test duckdb
37+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"duckdb\", { con <- dbConnect(duckdb()); dbWriteTable(con, \"mtcars\", mtcars); dbDisconnect(con) })'"
3638
37- # - name: Test collapse
38- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"collapse\", fmean(mtcars$mpg))'"
39+ - name : Test collapse
40+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"collapse\", fmean(mtcars$mpg))'"
3941
40- # - name: Test kit
41- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"kit\", countNA(mtcars))'"
42+ - name : Test kit
43+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"kit\", countNA(mtcars))'"
4244
43- # - name: Test icosa
44- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"icosa\", { grid <- trigrid(5); print(grid) })'"
45+ - name : Test icosa
46+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"icosa\", { grid <- trigrid(5); print(grid) })'"
4547
46- # - name: Test sf
47- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"sf\", { nc <- st_read(system.file(\"shape/nc.shp\", package=\"sf\")); st_bbox(nc) })'"
48+ - name : Test sf
49+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"sf\", { nc <- st_read(system.file(\"shape/nc.shp\", package=\"sf\")); st_bbox(nc) })'"
4850
49- # - name: Test terra
50- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"terra\", { r <- rast(system.file(\"ex/logo.tif\", package=\"terra\")); summary(r) })'"
51+ - name : Test terra
52+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"terra\", { r <- rast(system.file(\"ex/logo.tif\", package=\"terra\")); summary(r) })'"
5153
52- # - name: Test stars
53- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"stars\", { s <- read_stars(system.file(\"tif/L7_ETMs.tif\", package=\"stars\")); print(s) })'"
54+ - name : Test stars
55+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"stars\", { s <- read_stars(system.file(\"tif/L7_ETMs.tif\", package=\"stars\")); print(s) })'"
5456
55- # # - name: Test Rcpp
56- # # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"Rcpp\", { cppFunction(\"int add(int x, int y) { return x + y; }\"); add(1, 2) })'"
57+ - name : Test Rcpp
58+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"Rcpp\", { cppFunction(\"int add(int x, int y) { return x + y; }\"); add(1, 2) })'"
5759
58- # - name: Test data.table
59- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"data.table\", { dt <- as.data.table(mtcars); dt[, .(mean_mpg = mean(mpg))] })'"
60+ - name : Test data.table
61+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"data.table\", { dt <- as.data.table(mtcars); dt[, .(mean_mpg = mean(mpg))] })'"
6062
61- # - name: Test stringi
62- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"stringi\", stri_length(\"test\"))'"
63+ - name : Test stringi
64+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"stringi\", stri_length(\"test\"))'"
6365
64- # - name: Test jsonlite
65- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"jsonlite\", toJSON(mtcars))'"
66+ - name : Test jsonlite
67+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"jsonlite\", toJSON(mtcars))'"
6668
67- # - name: Test devtools
68- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"devtools\", dev_sitrep())'"
69+ - name : Test devtools
70+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"devtools\", dev_sitrep())'"
6971
70- # - name: Test curl
71- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"curl\", { h <- curl::new_handle(); curl::handle_setopt(h, url = \"https://httpbin.org/get\"); curl::curl_fetch_memory(\"https://httpbin.org/get\", h) })'"
72+ - name : Test curl
73+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"curl\", { h <- curl::new_handle(); curl::handle_setopt(h, url = \"https://httpbin.org/get\"); curl::curl_fetch_memory(\"https://httpbin.org/get\", h) })'"
7274
73- # - name: Test openssl
74- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"openssl\", sha256(\"test\"))'"
75+ - name : Test openssl
76+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"openssl\", sha256(\"test\"))'"
7577
76- # - name: Test ragg
77- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"ragg\", { agg_png(\"test_plot.png\"); plot(1:10); dev.off() })'"
78+ - name : Test ragg
79+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"ragg\", { agg_png(\"test_plot.png\"); plot(1:10); dev.off() })'"
7880
79- # - name: Test shiny
80- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"shiny\", cat(\"Shiny package loaded. Run `runExample()` to see examples.\\n\"))'"
81+ - name : Test shiny
82+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"shiny\", cat(\"Shiny package loaded. Run `runExample()` to see examples.\\n\"))'"
8183
82- # - name: Test dbplyr
83- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"dbplyr\", tbl_lazy(mtcars))'"
84+ - name : Test dbplyr
85+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"dbplyr\", tbl_lazy(mtcars))'"
8486
85- # - name: Test RcppEigen
86- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"RcppEigen\", { fastLm( log(Volume) ~ log(Girth), data=trees) })'"
87+ - name : Test RcppEigen
88+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"RcppEigen\", { fastLm( log(Volume) ~ log(Girth), data=trees) })'"
8789
88- # - name: Test nloptr
89- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"nloptr\", { res <- nloptr(x0 = 1, eval_f = function(x) x^3, eval_grad_f = function(x) 2*x^2, lb = -5, ub = 5, opts = list(\"algorithm\"=\"NLOPT_LD_LBFGS\", \"maxeval\"=10)); res$solution })'"
90+ - name : Test nloptr
91+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"nloptr\", { res <- nloptr(x0 = 1, eval_f = function(x) x^3, eval_grad_f = function(x) 2*x^2, lb = -5, ub = 5, opts = list(\"algorithm\"=\"NLOPT_LD_LBFGS\", \"maxeval\"=10)); res$solution })'"
9092
91- # - name: Test igraph
92- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"igraph\", { g <- make_ring(10); plot(g) })'"
93+ - name : Test igraph
94+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"igraph\", { g <- make_ring(10); plot(g) })'"
9395
94- # - name: Test rJava
95- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"rJava\", .jinit())'"
96+ - name : Test rJava
97+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"rJava\", .jinit())'"
9698
97- # - name: Test RCurl
98- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"RCurl\", getURL(\"https://httpbin.org/get\"))'"
99+ - name : Test RCurl
100+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"RCurl\", getURL(\"https://httpbin.org/get\"))'"
99101
100- # - name: Test RSQLite
101- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"RSQLite\", { con <- dbConnect(RSQLite::SQLite(), \":memory:\"); dbWriteTable(con, \"mtcars\", mtcars); dbDisconnect(con) })'"
102+ - name : Test RSQLite
103+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"RSQLite\", { con <- dbConnect(RSQLite::SQLite(), \":memory:\"); dbWriteTable(con, \"mtcars\", mtcars); dbDisconnect(con) })'"
102104
103- # - name: Test rstan
104- # run: nix-shell health.nix --run "Rscript -e 'withr::with_package(\"rstan\", cat(\"rstan package loaded.\\n\"))'"
105+ - name : Test rstan
106+ run : nix-shell health.nix --run "Rscript -e 'withr::with_package(\"rstan\", cat(\"rstan package loaded.\\n\"))'"
0 commit comments