edit_file {usethis} | R Documentation |
Opens a file for editing in RStudio, if that is the active 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_file(path)
path |
Path to target file. |
Target path, invisibly.
## Not run: edit_file("DESCRIPTION") edit_file("~/.gitconfig") ## End(Not run)