View source: R/neptune_file_as_html.R
neptune_file_as_html | R Documentation |
Converts an object to an HTML File value object. This way you can upload ggplot2, Plotly interactive charts or upload directly DataFrame objects to explore them in Neptune UI.
neptune_file_as_html(x)
x |
An object to be converted. Supported are ggplot2, Plotly and DataFrame objects. R matrices must be converted to numpy arrays via reticulate::np_array R dataframes are automatically converted to Pandas |
None
Authors:
Mateusz Dominiak
Maintainer: Neptune DevTeam Devbackend@neptune.ai
Useful links:
Documentation https://docs.neptune.ai/
Report bugs at https://github.com/neptune-ai/neptune-r/issues
## Not run:
# We are using api token for an anonymous user neptuner. For your projects use your private token.
run <- neptune_init(api_token = ANONYMOUS_API_TOKEN,
project = "common-r/quickstarts")
df <- data.frame(prediction = runif(10), index = 1:10)
neptune_upload(run['evaluation/predictions'], neptune_file_as_html(df))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.