file.edit(..., title = file, editor = getOption("editor"),
fileEncoding = "")path.expand.file. The title argument is used for the window caption in Windows,
and is currently ignored on other platforms.
Any error in re-encoding the files to the native encoding will cause the function to fail.
The default for editor is system-dependent. On
Windows it defaults to "internal", the script editor, and in
the OS X GUI the document editor is used whatever the value of
editor. On Unix the default is set from the environment
variables vi is used.
#ifdef windows
UTF-8-encoded paths not valid in the current locale can be used. #endif
files,
file.show,
edit,
fix,# open two R scripts for editing
file.edit("script1.R", "script2.R")Run the code above in your browser using DataLab