Rev 54551 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/utils/man/file.edit.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2011 R Core Development Team% Distributed under GPL 2 or later\name{file.edit}\alias{file.edit}\title{Edit One or More Files}\description{Edit one or more files in a text editor.}\usage{file.edit(\dots, title = file, editor = getOption("editor"),fileEncoding = "")}\arguments{\item{\dots}{one or more character vectors containing the names of thefiles to be displayed. These will be tilde-expanded: see\code{\link{path.expand}}.}\item{title}{the title to use in the editor; defaults to the filename.}\item{editor}{the text editor to be used. See \sQuote{Details}.}\item{fileEncoding}{the encoding to assume for the file: the defaultis to assume the native encoding. See the \sQuote{Encoding} sectionof the help for \code{\link{file}}.}}\details{The behaviour of this function is very system dependent. Currentlyfiles can be opened only one at a time on Unix; on Windows, theinternal editor allows multiple files to be opened, but has a limit of50 simultaneous edit windows.The \code{title} argument is used for the window caption in Windows,and is currently ignored on other platforms.The \code{fileEncoding} argument was added in \R 2.13.0: any error inre-encoding the files to the native encoding will cause the functionto fail.The default for \code{editor} is system-dependent. OnWindows it defaults to \code{"internal"}, the script editor, and inthe Mac OS X GUI the document editor is used whatever the value of\code{editor}. On Unix the default is set from the environmentvariables \env{EDITOR} or \env{VISUAL} if either is set, otherwise\code{vi} is used.#ifdef windowsUTF-8-encoded paths not valid in the current locale can be used.#endif}\seealso{\code{\link{files}},\code{\link{file.show}},\code{\link{edit}},\code{\link{fix}},}\examples{\dontrun{# open two R scripts for editingfile.edit("script1.R", "script2.R")}}\keyword{utilities}