There was an error while loading. Please reload this page.
1 parent c98740e commit e1399baCopy full SHA for e1399ba
1 file changed
tests/testthat/helper-models.R
@@ -1,3 +1,12 @@
1
+local({
2
+ stan_files <- dir(test_path("resources", "stan"), pattern = "\\.stan$", full.names = TRUE)
3
+ exe_files <- cmdstanr:::cmdstan_ext(cmdstanr:::strip_ext(stan_files))
4
+ existing_exe_files <- exe_files[file.exists(exe_files)]
5
+ if (length(existing_exe_files) > 0) {
6
+ unlink(existing_exe_files, force = TRUE)
7
+ }
8
+})
9
+
10
testing_data <- function(name) {
11
if (file.exists(test_path("resources", "data", paste0(name, ".data.rds")))) {
12
readRDS(test_path("resources", "data", paste0(name, ".data.rds")))
0 commit comments