Run a report on a remote server. Note that this is only supported for remotes using OrderlyWeb at present.
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 )
| name | Name of the report |
|---|---|
| parameters | Parameters for the report |
| ref | Optional reference, indicating which branch should be
used. This cannot be used if the remote has |
| timeout | Time to tell the server to wait before killing the report. |
| wait | Time to wait for the report to be run; if the report
takes longer than this time to run but |
| poll | Period to poll the server for results (in seconds) |
| open | Logical, indicating if the report should be opened in a browser on completion (if supported by the remote) |
| stop_on_error | Logical, indicating if we should throw an
error if the report fails. If you set this to |
| stop_on_timeout | Logical, indicating if we should throw an
error if the report takes longer than |
| progress | Logical, indicating if a progress spinner should be included. |
| root | The path to an orderly root directory, or |
| locate | Logical, indicating if the configuration should be
searched for. If |
| 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. |
| remote | Description of the location. Typically this is a
character string indicating a remote specified in the
|
No return value, this function is called only for its side effects
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))#> Error in remote$run(name, parameters = parameters, ref = ref, timeout = timeout, : #> 'orderly_remote_path' remotes do not run