-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathinstall.URL.Rd
More file actions
59 lines (52 loc) · 1.7 KB
/
Copy pathinstall.URL.Rd
File metadata and controls
59 lines (52 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{install.URL}
\alias{install.URL}
\title{Downloads and runs a .exe installer file for some software from a URL}
\usage{
install.URL(exe_URL, keep_install_file = FALSE, wait = TRUE,
download_dir = tempdir(), massage = TRUE, installer_option = NULL, ...)
}
\arguments{
\item{exe_URL}{A character with a link to an installer
file (with the .exe file extension)}
\item{keep_install_file}{If TRUE - the installer file
will not be erased after it is downloaded and run.}
\item{wait}{should the R interpreter wait for the command
to finish? The default is to NOT wait.}
\item{download_dir}{A character of the directory into
which to download the file. (default is
\link{tempdir}())}
\item{massage}{boolean. Should a massage on the file be
printed or not (default is TRUE)}
\item{installer_option}{A character of the command line
arguments}
\item{...}{parameters passed to 'shell'}
}
\value{
invisible(TRUE/FALSE) - was the installation successful or
not. (this is based on the output of shell of running the
command being either 0 or 1/2. 0 means the file was
succesfully installed, while 1 or 2 means there was a
failure in running the installer.)
}
\description{
Gets a character with a link to an installer file,
downloads it, runs it, and then erases it.
}
\details{
This function is used by many functions in the installr
package. The .exe file is downloaded into a temporary
directory, where it is erased after installation has
started (by default - though this can be changed)
}
\examples{
\dontrun{
install.URL("adfadf") # shows the error produced when the URL is not valid.
}
}
\author{
GERGELY DAROCZI, Tal Galili
}
\seealso{
\link{shell}
}