msg_encode: Encode Pub/Sub message

View source: R/utils.R

msg_encodeR Documentation

Encode Pub/Sub message

Description

Converts an object into a base64 string

Usage

msg_encode(x)

Arguments

x

A serializeable object

Value

character a base64 encoded string

Examples

## Not run: 
library(jsonlite)

mtcars %>% 
  toJSON(auto_unbox = TRUE) %>%
  msg_encode() %>% 
  PubsubMessage()

## End(Not run)


googlePubsubR documentation built on March 7, 2023, 6:38 p.m.