commit_lake_item | R Documentation |
Adds or replaces an object in the lake in a specific path, with a specific key
commit_lake_item(data, metadata, mode, credentials)
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. |
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.
example
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.