Skip to content

implement non-interactive flow for create_if_needed()#1216

Closed
pachadotdev wants to merge 2 commits intoThinkR-open:masterfrom
pachadotdev:issue1154
Closed

implement non-interactive flow for create_if_needed()#1216
pachadotdev wants to merge 2 commits intoThinkR-open:masterfrom
pachadotdev:issue1154

Conversation

@pachadotdev
Copy link
Copy Markdown
Contributor

implements #1154

I think the correct approach in non-interactive mode should be:

  1. check if the file/dir exists
  2. if it does not exist, create it
  3. if it exists, refuse to overwrite and print a warning except is a new parameter is set to overwrite = T
  4. besides it, allow to hide warnings with an extra parameter (i.e., for testthat when we test overwriting)

@ColinFay ColinFay self-requested a review April 10, 2026 13:24
@ColinFay
Copy link
Copy Markdown
Member

Hey Pacha,

I've cherry picked and rework some logic here : #1230

Thanks for your contribution 🫶

@ColinFay ColinFay closed this Apr 10, 2026
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

Successfully merging this pull request may close these issues.

2 participants