The R Project SVN R

Rev

Rev 77485 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 77485 Rev 81360
Line 1... Line 1...
1
% File src/library/base/man/windows/shell.exec.Rd
1
% File src/library/base/man/windows/shell.exec.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2019 R Core Team
3
% Copyright 1995-2021 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{shell.exec}
6
\name{shell.exec}
7
\alias{shell.exec}
7
\alias{shell.exec}
8
\title{Open a File or URL using Windows File Associations}
8
\title{Open a File or URL using Windows File Associations}
9
\usage{
9
\usage{
10
shell.exec(file)
10
shell.exec(file)
11
}
11
}
12
\arguments{
12
\arguments{
13
  \item{file}{file or URL to be opened.}
13
  \item{file}{file, directory or URL to be opened.}
14
}
14
}
15
\description{
15
\description{
16
  Opens the specified file or URL using the application specified in the
16
  Opens the specified file or URL using the application specified in the
-
 
17
  Windows file associations. A directory is opened in a new or existing 
17
  Windows file associations.
18
  explorer window.
18
}
19
}
19
\details{
20
\details{
20
  The path in \code{file} should be a full path.
21
  The path in \code{file} should be a full path.
21
 
22
 
22
  If the path in \code{file} is not a full path, it is interpreted relative
23
  If the path in \code{file} is not a full path, it is interpreted relative
Line 39... Line 40...
39
\examples{\dontrun{
40
\examples{\dontrun{
40
## the space should not be encoded here
41
## the space should not be encoded here
41
shell.exec("C:\\\\Program Files\\\\BreezeSys\\\\BreezeBrowser\\\\Breezebrowser.htm")
42
shell.exec("C:\\\\Program Files\\\\BreezeSys\\\\BreezeBrowser\\\\Breezebrowser.htm")
42
shell.exec("C:/Program Files/BreezeSys/BreezeBrowser/Breezebrowser.htm")
43
shell.exec("C:/Program Files/BreezeSys/BreezeBrowser/Breezebrowser.htm")
43
shell.exec("file:///C:/Program Files/BreezeSys/BreezeBrowser/Breezebrowser.htm")
44
shell.exec("file:///C:/Program Files/BreezeSys/BreezeBrowser/Breezebrowser.htm")
-
 
45
shell.exec(.libPaths()[1])
-
 
46
shell.exec(R.home())
-
 
47
shell.exec(path.expand("~"))
44
}}
48
}}
45
 
49
 
46
\keyword{utilities}
50
\keyword{utilities}