Skip to content

Commit e1399ba

Browse files
committed
Refresh test binaries
1 parent c98740e commit e1399ba

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/testthat/helper-models.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
110
testing_data <- function(name) {
211
if (file.exists(test_path("resources", "data", paste0(name, ".data.rds")))) {
312
readRDS(test_path("resources", "data", paste0(name, ".data.rds")))

0 commit comments

Comments
 (0)