Opens a file for editing in RStudio or Positron, if either is the active
development environment, or via utils::file.edit() otherwise. If the file
does not exist, it is created. If the parent directory does not exist, it is
also created. edit_template() specifically opens templates in
inst/templates for use with use_template().
Usage
edit_file(path, open = rlang::is_interactive())
edit_template(template = NULL, open = rlang::is_interactive())