https://github.com/nmfs-ost/asar/blob/b1e2a73812864343722698f29ba2bf4afe2a7688/R/create_template.R#L614C23-L614C150
As I read it I think that this line:
output <- utils::read.csv(paste0(subdir, "/", paste(stringr::str_replace_all(species, " ", "_"), "_std_res_", year, ".csv", sep = "")))
needs to be changed to:
output <- utils::read.csv(here::here(subdir, paste0(stringr::str_replace_all(species, " ", "_"), "_std_res_", year, ".csv")))
Reason being that the function is looking for a step down from the compiling location instead of the project location for the assessment output data to use, e.g.,
currently
proj
| -- report
| -- output
| -- document
What is desired (I think)
proj
| -- output
| -- report
| -- document
https://github.com/nmfs-ost/asar/blob/b1e2a73812864343722698f29ba2bf4afe2a7688/R/create_template.R#L614C23-L614C150
As I read it I think that this line:
output <- utils::read.csv(paste0(subdir, "/", paste(stringr::str_replace_all(species, " ", "_"), "_std_res_", year, ".csv", sep = "")))needs to be changed to:
output <- utils::read.csv(here::here(subdir, paste0(stringr::str_replace_all(species, " ", "_"), "_std_res_", year, ".csv")))Reason being that the function is looking for a step down from the compiling location instead of the project location for the assessment output data to use, e.g.,
currently
What is desired (I think)