RStudio's file.edit
behaves differently than utils::file.edit
.
The workaround is to have the user manually open the file if they are using
RStudio, as suggested in the RStudio support ticket at
https://support.rstudio.com/hc/en-us/community/posts/206011308-file-edit-vs-utils-file-edit.