Skip to content

Commit

Permalink
remove unused lines in installer
Browse files Browse the repository at this point in the history
  • Loading branch information
hillalex committed Oct 3, 2024
1 parent f1501fb commit 10098df
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/install.libs.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,6 @@ if (is.null(cmdstanr::cmdstan_version(error_on_NA = FALSE))) {
} else {
message(paste("Found cmdstan at path", cmdstanr::cmdstan_path()))
}
inst_stan <- file.path("..", "inst", "stan")
if (dir.exists(inst_stan)) {
warning(
"Stan models in inst/stan/ are deprecated in {instantiate} ",
">= 0.0.4.9001 (2024-01-03). Please put them in src/stan/ instead."
)
if (file.exists("stan")) {
warning("src/stan/ already exists. Not copying models from inst/stan/.")
} else {
message("Copying inst/stan/ to src/stan/.")
fs::dir_copy(path = inst_stan, new_path = "stan")
}
}
bin <- file.path(R_PACKAGE_DIR, "bin")
if (!file.exists(bin)) {
dir.create(bin, recursive = TRUE, showWarnings = FALSE)
Expand Down

0 comments on commit 10098df

Please sign in to comment.