Title: | R Client for the Daisi Microservice Platform |
---|---|
Description: | Connect, execute, and parse results from the Daisi Microservice Platform <https://www.daisi.io/>. The rdaisi client includes a set of functionality that allows remote execution of microservices directly from R. Daisis allow R users to access a wide variety of Python functionality and interact with them natively. |
Authors: | Daisi Technology, Inc. [aut], Jean-Marie Laigle [aut], Eric Hare [aut, cre] |
Maintainer: | Eric Hare <[email protected]> |
License: | Apache License (>= 2) |
Version: | 0.1.3 |
Built: | 2024-11-26 06:33:25 UTC |
Source: | CRAN |
Set the necessary environment variables to configure the Daisi client
configure_daisi(python_path = NULL, daisi_instance = "app")
configure_daisi(python_path = NULL, daisi_instance = "app")
python_path |
The path to the python binary on your system |
daisi_instance |
The Daisi instance to connect to |
TRUE if successful update has occurred
## Not run: configure_daisi(python_path = "/usr/local/bin/python3", daisi_instance = "app") ## End(Not run)
## Not run: configure_daisi(python_path = "/usr/local/bin/python3", daisi_instance = "app") ## End(Not run)
Initialize and connect to the given Daisi
Daisi(daisi_id, base_url = NULL)
Daisi(daisi_id, base_url = NULL)
daisi_id |
The name or UUID of the daisi |
base_url |
The platform on which to access the daisi |
daisi object with daisi information
## Not run: configure_daisi() d <- Daisi("Add Two Numbers") d ## End(Not run)
## Not run: configure_daisi() d <- Daisi("Add Two Numbers") d ## End(Not run)
Generate a new execution of a given Daisi
DaisiExecution(daisi, endpoint, ...)
DaisiExecution(daisi, endpoint, ...)
daisi |
The Daisi object, initialized with Daisi() |
endpoint |
The endpoint of the Daisi to call |
... |
Arguments passed onto the underlying Daisi |
DaisiExecution object with the Execution parameters
## Not run: configure_daisi() d <- Daisi("Add Two Numbers") de <- DaisiExecution(d, list(firstNumber = 5, secondNumber = 6)) Sys.sleep(1) de$value() ## End(Not run)
## Not run: configure_daisi() d <- Daisi("Add Two Numbers") de <- DaisiExecution(d, list(firstNumber = 5, secondNumber = 6)) Sys.sleep(1) de$value() ## End(Not run)
Generate a new map execution of a given Daisi
DaisiMapExecution(daisi, args_list)
DaisiMapExecution(daisi, args_list)
daisi |
The Daisi object, initialized with Daisi() |
args_list |
A list of named lists of arguments to provide to the Daisi |
DaisiExecution object with the Execution parameters
## Not run: configure_daisi() d <- Daisi("Add Two Numbers") bulk_options <- lapply(1:10, function(x) { list(firstNumber = x, secondNumber = 5) }) deb <- DaisiMapExecution(d, bulk_options) deb ## End(Not run)
## Not run: configure_daisi() d <- Daisi("Add Two Numbers") bulk_options <- lapply(1:10, function(x) { list(firstNumber = x, secondNumber = 5) }) deb <- DaisiMapExecution(d, bulk_options) deb ## End(Not run)
Begin execution of the given Daisi
execute_daisi(daisi_execution)
execute_daisi(daisi_execution)
daisi_execution |
The DaisiExecution object for which to fetch the result |
The ID (in UUID format) of the execution
Get the result of the Daisi Execution
result_daisi(daisi_execution)
result_daisi(daisi_execution)
daisi_execution |
The DaisiExecution object for which to fetch the result |
The object produced by the given Daisi