Learn R Programming

dstack (version 0.2.1)

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

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

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

Run this code
# NOT RUN {
library(ggplot2)
library(dstack)
image <- qplot(clarity, data = diamonds, fill = cut, geom = "bar")
push_frame("diamonds", image, "Diamonds bar chart")
# }

Run the code above in your browser using DataLab