compute_result | R Documentation |
Executes a job directly on the connected openEO service and returns the data. During the execution phase the connection to
the server remains open. This function allows to debug the code and check the results immediately.
Please keep in mind, that computational functions might be related to monetary costs, if no 'free' plan is available.
Make sure to keep the data selection relatively small, also some openEO service provider might offer limited processes support,
e.g. not supporting UDFs at this endpoint. When a file format is set, then the process graph will be parsed and the arguments for
'save_result' will be replaced. If the 'stars' package is installed and parameter as_stars
is set to TRUE, then the downloaded
data is opened and interpreted into a stars object.
compute_result( graph, output_file = NULL, budget = NULL, plan = NULL, as_stars = FALSE, format = NULL, con = NULL, ... )
graph |
a |
output_file |
storage location for the returned data |
budget |
numeric, maximum spendable amount for testing |
plan |
character, selection of a service plan |
as_stars |
logical to indicate if the data shall be interpreted as a stars object |
format |
character or |
con |
connected and authenticated openEO client (optional) otherwise |
... |
additional parameters passed to jsonlite::toJSON() (like 'digits') or additional arguments that shall be passed to the openEO process 'save_result' |
a local path to the downloaded file or a stars
object if as_stars=TRUE
If parameter 'format' is ignored, it is assumed that 'save_result' was already used in the process graph. Otherwise it is up to the back-end provider how data is stored if 'save_result' was omitted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.