Skip to content

here::here() for output location #196

@BenWilliams-NOAA

Description

@BenWilliams-NOAA

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions