-
Notifications
You must be signed in to change notification settings - Fork 301
Closed
Labels
code 🖥️R/, tests/R/, tests/featurea feature request or enhancementa feature request or enhancementhelp wanted ❤️we'd love your help!we'd love your help!
Description
In use_test the user can specify the open argument to avoid opening the R files in the editor.
In use_r, this is not possible right now. I think for automation this would be a nice to have feature. Plus, it would increase consistency of the two functions that are quite similar.
lapply(c("foo", "bar", "zett"), usethis::use_r) # opens windows in Rstudio
lapply(c("foo", "bar", "zett"), usethis::use_test) # opens windows in Rstudio (because interactive() is default)
# don't open windows
lapply(c("foo", "bar", "zett"), usethis::use_test, open = FALSE) # does not open windows
lapply(c("foo", "bar", "zett"), usethis::use_r, open = FALSE) # <- open argument not availale -> errorllrs
Metadata
Metadata
Assignees
Labels
code 🖥️R/, tests/R/, tests/featurea feature request or enhancementa feature request or enhancementhelp wanted ❤️we'd love your help!we'd love your help!