commit_lake_item: clessnverse::commit_lake_item

View source: R/dev_e.R

commit_lake_itemR Documentation

clessnverse::commit_lake_item

Description

[Experimental]

Adds or replaces an object in the lake in a specific path, with a specific key

Usage

commit_lake_item(data, metadata, mode, credentials)

Arguments

data

A named list object containing a key, a path and the item to be added to the data lake

metadata

A named list object containing the metadata to be applied to the lake item

mode

A string object. If mode = "refresh", then if an object already exists with this key in the data lake, then it will be overwritten. If mode = "newonly", then if an object already exists with this key in the data lake, then it will be skipped and a warning will be logged

credentials

These are your HUBLOT credentials. They are obtained by usung the hubblot::get_credentials function.

               ATTENTION:
               DO NOT explicitely leave your cresential information
               (username and password) in your code.  Use environment
               variables instead, using the .Renviron file in your
               user home directory.

Value

the function returns - the hublot id of the element that was added to the datalake if the operation was successful. - 1 if there was an error. - 2 if there was a warning.

Examples

example

clessn/clessn-verse documentation built on Feb. 18, 2024, 12:42 p.m.