R/comm_open.R

Defines functions comm_open

Documented in comm_open

# Copyright (C) 2017-2018  Spencer Aiello
#
# This file is part of JuniperKernel.
#
# JuniperKernel is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# JuniperKernel is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with JuniperKernel.  If not, see <http://www.gnu.org/licenses/>.

#' Handler for the comm_open Message Type
#'
#' @title Comm Open
#' @param request_msg
#'   A list passed in from \code{doRequest} representing the
#'   deserialized \code{comm_open} message JSON.
#'
#' @return NULL
#'
#' @author Spencer Aiello
#' @references \url{http://jupyter-client.readthedocs.io/en/latest/messaging.html#opening-a-comm}
#'
#' @examples
#' \dontrun{
#'   request_msg <- list("comm_id"="uniq_comm_id", "target_name"="my_comm", "data"=list())
#'   comm_open(request_msg)
#' }
#'
#' @export
comm_open <- function(request_msg) {
  comm_request("open")
  NULL
}

Try the JuniperKernel package in your browser

Any scripts or data that you put into this service are public.

JuniperKernel documentation built on May 2, 2019, 4:35 a.m.