Learn R Programming

neptune (version 0.2.3)

neptune_file_as_html: Converts an object to an HTML File value object.

Description

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.

Usage

neptune_file_as_html(x)

Arguments

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

Value

None

See Also

Useful links:

Examples

Run this code
# 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',
                    project = "common-r/quickstarts")
df <- data.frame(prediction = runif(10), index = 1:10)
neptune_upload(run['evaluation/predictions'], neptune_file_as_html(df))
# }

Run the code above in your browser using DataLab