
Last chance! 50% off unlimited learning
Sale ends in
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 EDITOR or VISUAL if either is set, otherwise
vi
is used.
windows
UTF-8-encoded paths not valid in the current locale can be used.
files
,
file.show
,
edit
,
fix
,
## Not run:
# # open two R scripts for editing
# file.edit("script1.R", "script2.R")
# ## End(Not run)
Run the code above in your browser using DataLab