golem
golem copied to clipboard
implement non-interactive flow for create_if_needed()
implements #1154
I think the correct approach in non-interactive mode should be:
- check if the file/dir exists
- if it does not exist, create it
- if it exists, refuse to overwrite and print a warning except is a new parameter is set to
overwrite = T - besides it, allow to hide warnings with an extra parameter (i.e., for testthat when we test overwriting)