Learn R Programming

googlePubsubR (version 0.0.4)

msg_encode: Encode Pub/Sub message

Description

Converts an object into a base64 string

Usage

msg_encode(x)

Value

character a base64 encoded string

Arguments

x

A serializeable object

Examples

Run this code
if (FALSE) {
library(jsonlite)

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

Run the code above in your browser using DataLab