Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Absolute path for variant_dir #101

Open
bthe opened this issue Feb 6, 2020 · 0 comments
Open

Absolute path for variant_dir #101

bthe opened this issue Feb 6, 2020 · 0 comments

Comments

@bthe
Copy link
Collaborator

bthe commented Feb 6, 2020

When defining a model variant for projections I would like to store the interim results in a temporary via tempdir(). Since gadget.variant.dir assumes the variant_dir is specified relative to the model directory the definition of the tempdir() as the variant_dir becomes fairly clumsy. Assuming no knowledge of the current working directory this can be hacked with:

getwd() %>% 
      stringr::str_count('/') %>% 
      rep('../',.) %>% 
      paste(collapse = '') %>% 
      paste(tempdir(),sep='')

But I assume it would be simpler to change gadget.variant.dir such that absolute positioning of the variant directory can be allowed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant