push_frame: Creates a Frame, Commits and Pushes Data in a Single...

Description Usage Arguments Value Examples

View source: R/stack.R

Description

In the case of one plot per push you can use do all operations in one call. This function creates a frame, commits view and pushes all data to server. The main difference in behaviour in this case is the function creates frame without permission check, so be sure that you have certain permission to push in the stack.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
push_frame(
  stack,
  obj,
  description = NULL,
  params = NULL,
  message = NULL,
  profile = "default",
  handler = auto_handler(),
  protocol = NULL,
  encryption = .no_encryption,
  ...
)

Arguments

stack

A name of stack to use.

obj

Object to commit and push, e.g. plot.

description

Optional description of the object.

params

Optional parameters.

message

Push message. NULL by default.

profile

Profile you want to use, i.e. username and token. Default profile is 'default'.

handler

Specify handler to handle the object, if it's None then auto_handler will be used.

protocol

Protocol to use, usually it is NULL it means that json_protocol will be used.

encryption

Encryption method by default no_encryption will be used.

...

Optional parameters is an alternative to params. If both are present this one will be merged into params.

Value

Stack URL.

Examples

1
2
3
4
library(ggplot2)
library(dstack)
image <- qplot(clarity, data = diamonds, fill = cut, geom = "bar")
push_frame("diamonds", image, "Diamonds bar chart")

dstack documentation built on Aug. 12, 2020, 5:08 p.m.