The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

Type: Package
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.
Version: 0.1.3
License: Apache License (≥ 2)
URL: https://www.daisi.io/
Encoding: UTF-8
RoxygenNote: 7.2.0
Imports: reticulate, httr
NeedsCompilation: no
Packaged: 2022-07-20 15:49:09 UTC; erichare
Author: Daisi Technology, Inc. [aut], Jean-Marie Laigle [aut], Eric Hare [aut, cre]
Maintainer: Eric Hare <eric.hare@daisi.io>
Repository: CRAN
Date/Publication: 2022-07-20 16:00:02 UTC

Initialize and connect to the given Daisi

Description

Initialize and connect to the given Daisi

Usage

Daisi(daisi_id, base_url = NULL)

Arguments

daisi_id

The name or UUID of the daisi

base_url

The platform on which to access the daisi

Value

daisi object with daisi information

Examples

## Not run: 
configure_daisi()

d <- Daisi("Add Two Numbers")
d

## End(Not run)

Generate a new execution of a given Daisi

Description

Generate a new execution of a given Daisi

Usage

DaisiExecution(daisi, endpoint, ...)

Arguments

daisi

The Daisi object, initialized with Daisi()

endpoint

The endpoint of the Daisi to call

...

Arguments passed onto the underlying Daisi

Value

DaisiExecution object with the Execution parameters

Examples

## 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

Description

Generate a new map execution of a given Daisi

Usage

DaisiMapExecution(daisi, args_list)

Arguments

daisi

The Daisi object, initialized with Daisi()

args_list

A list of named lists of arguments to provide to the Daisi

Value

DaisiExecution object with the Execution parameters

Examples

## 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)

Set the necessary environment variables to configure the Daisi client

Description

Set the necessary environment variables to configure the Daisi client

Usage

configure_daisi(python_path = NULL, daisi_instance = "app")

Arguments

python_path

The path to the python binary on your system

daisi_instance

The Daisi instance to connect to

Value

TRUE if successful update has occurred

Examples

## Not run: 
configure_daisi(python_path = "/usr/local/bin/python3", daisi_instance = "app")

## End(Not run)

Begin execution of the given Daisi

Description

Begin execution of the given Daisi

Usage

execute_daisi(daisi_execution)

Arguments

daisi_execution

The DaisiExecution object for which to fetch the result

Value

The ID (in UUID format) of the execution


Get the result of the Daisi Execution

Description

Get the result of the Daisi Execution

Usage

result_daisi(daisi_execution)

Arguments

daisi_execution

The DaisiExecution object for which to fetch the result

Value

The object produced by the given Daisi

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.