neptune_file_as_image {neptune} | R Documentation |
Static method for converting image objects or image-like objects to an image File value object.
Description
Static method for converting image objects or image-like objects to an image File value object. This way you can upload ggplot2 objects, matrices, as static images.
Usage
neptune_file_as_image(x, ...)
Arguments
x |
In docs there is Image-like object to be converted. Supported are ggplot2 objects, matrices, as static images. R matrices must be converted to numpy arrays via reticulate::np_array |
... |
Other arguments passed on to the ggsave function |
Value
None
Author(s)
Authors:
Mateusz Dominiak
Maintainer: Neptune DevTeam Devbackend@neptune.ai
See Also
Useful links:
Documentation https://docs.neptune.ai/
Report bugs at https://github.com/neptune-ai/neptune-r/issues
Examples
## 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")
image <- matrix(runif(16*16), nrow = 16)
neptune_log(run['test/sample_images'], neptune_file_as_image(reticulate::np_array(image)))
## End(Not run)
[Package neptune version 0.2.3 Index]