| Line 14... |
Line 14... |
| 14 |
\arguments{
|
14 |
\arguments{
|
| 15 |
\item{\dots}{one or more character vectors containing the names of the
|
15 |
\item{\dots}{one or more character vectors containing the names of the
|
| 16 |
files to be displayed. These will be tilde-expanded: see
|
16 |
files to be displayed. These will be tilde-expanded: see
|
| 17 |
\code{\link{path.expand}}.}
|
17 |
\code{\link{path.expand}}.}
|
| 18 |
\item{title}{the title to use in the editor; defaults to the filename.}
|
18 |
\item{title}{the title to use in the editor; defaults to the filename.}
|
| 19 |
\item{editor}{the text editor to be used. See \sQuote{Details}.}
|
19 |
\item{editor}{the text editor to be used, usually as a character
|
| - |
|
20 |
string naming (or giving the path to) the text editor you want to
|
| - |
|
21 |
use See \sQuote{Details}.}
|
| 20 |
\item{fileEncoding}{the encoding to assume for the file: the default
|
22 |
\item{fileEncoding}{the encoding to assume for the file: the default
|
| 21 |
is to assume the native encoding. See the \sQuote{Encoding} section
|
23 |
is to assume the native encoding. See the \sQuote{Encoding} section
|
| 22 |
of the help for \code{\link{file}}.}
|
24 |
of the help for \code{\link{file}}.}
|
| 23 |
}
|
25 |
}
|
| 24 |
\details{
|
26 |
\details{
|
| 25 |
The behaviour of this function is very system dependent. Currently
|
27 |
The behaviour of this function is very system-dependent. Currently
|
| 26 |
files can be opened only one at a time on Unix; on Windows, the
|
28 |
files can be opened only one at a time on Unix; on Windows, the
|
| 27 |
internal editor allows multiple files to be opened, but has a limit of
|
29 |
internal editor allows multiple files to be opened, but has a limit of
|
| 28 |
50 simultaneous edit windows.
|
30 |
50 simultaneous edit windows.
|
| 29 |
|
31 |
|
| 30 |
The \code{title} argument is used for the window caption in Windows,
|
32 |
The \code{title} argument is used for the window caption in Windows,
|
| Line 38... |
Line 40... |
| 38 |
the macOS GUI the document editor is used whatever the value of
|
40 |
the macOS GUI the document editor is used whatever the value of
|
| 39 |
\code{editor}. On Unix the default is set from the environment
|
41 |
\code{editor}. On Unix the default is set from the environment
|
| 40 |
variables \env{EDITOR} or \env{VISUAL} if either is set, otherwise
|
42 |
variables \env{EDITOR} or \env{VISUAL} if either is set, otherwise
|
| 41 |
\code{vi} is used.
|
43 |
\code{vi} is used.
|
| 42 |
|
44 |
|
| - |
|
45 |
\code{editor} can also be an \R function, in which case it is called
|
| - |
|
46 |
with the arguments \code{name}, \code{file}, and \code{title}. Note
|
| - |
|
47 |
that such a function will need to independently implement all
|
| - |
|
48 |
desired functionality.
|
| - |
|
49 |
|
| 43 |
On Windows,
|
50 |
On Windows,
|
| 44 |
UTF-8-encoded paths not valid in the current locale can be used.
|
51 |
UTF-8-encoded paths not valid in the current locale can be used.
|
| 45 |
}
|
52 |
}
|
| 46 |
\seealso{
|
53 |
\seealso{
|
| 47 |
\code{\link{files}},
|
54 |
\code{\link{files}},
|