-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathorderly_run_remote.Rd
96 lines (83 loc) · 3.17 KB
/
orderly_run_remote.Rd
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/remote.R
\name{orderly_run_remote}
\alias{orderly_run_remote}
\title{Run a report on a remote server}
\usage{
orderly_run_remote(
name,
parameters = NULL,
ref = NULL,
timeout = NULL,
wait = 3600,
poll = 1,
open = TRUE,
stop_on_error = TRUE,
stop_on_timeout = TRUE,
progress = TRUE,
root = NULL,
locate = TRUE,
instance = NULL,
remote = NULL
)
}
\arguments{
\item{name}{Name of the report}
\item{parameters}{Parameters for the report}
\item{ref}{Optional reference, indicating which branch should be
used. This cannot be used if the remote has \code{master_only}
set.}
\item{timeout}{Time to tell the server to wait before killing the
report.}
\item{wait}{Time to wait for the report to be run; if the report
takes longer than this time to run but \code{timeout} is longer
it will remain running on the server but we will stop waiting
for it and instead throw an error.}
\item{poll}{Period to poll the server for results (in seconds)}
\item{open}{Logical, indicating if the report should be opened in
a browser on completion (if supported by the remote)}
\item{stop_on_error}{Logical, indicating if we should throw an
error if the report fails. If you set this to \code{FALSE} it
will be much easier to debug, but more annoying in scripts. If
the report times out on the server (i.e., takes longer than
\code{timeout}) that counts as an error.}
\item{stop_on_timeout}{Logical, indicating if we should throw an
error if the report takes longer than \code{wait} seconds to
complete.}
\item{progress}{Logical, indicating if a progress spinner should
be included.}
\item{root}{The path to an orderly root directory, or \code{NULL}
(the default) to search for one from the current working
directory if \code{locate} is \code{TRUE}.}
\item{locate}{Logical, indicating if the configuration should be
searched for. If \code{TRUE} and \code{config} is not given,
then orderly looks in the working directory and up through its
parents until it finds an \code{orderly_config.yml} file.}
\item{instance}{Select instance of the source database to be used,
where multiple instances are configured. Use a single unnamed
character string to indicate an instance to match. Will use
default if NULL.}
\item{remote}{Description of the location. Typically this is a
character string indicating a remote specified in the
\code{remotes} block of your \code{orderly_config.yml}. It is
also possible to pass in a directly created remote object (e.g.,
using \code{\link{orderly_remote_path}}, or one provided by
another package). If left \code{NULL}, then the default remote
for this orderly repository is used - by default that is the
first listed remote.}
}
\value{
No return value, this function is called only for its side effects
}
\description{
Run a report on a remote server. Note that this is only supported
for remotes using OrderlyWeb at present.
}
\examples{
path_remote <- orderly::orderly_example("demo")
path_local <- orderly::orderly_example("demo")
remote <- orderly::orderly_remote_path(path_remote)
# Currently, path remotes don't support run
try(orderly::orderly_run_remote(
"minimal", remote = remote, root = path_local))
}