powered by
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.
utils::file.edit()
edit_file(path, open = rlang::is_interactive())
Path to target file.
Whether to open the file for interactive editing.
Target path, invisibly.
# NOT RUN { edit_file("DESCRIPTION") edit_file("~/.gitconfig") # }
Run the code above in your browser using DataLab