coerce_bytes_literals_to_string: Transforms a python2 string literal or python3 bytes literal...

View source: R/utils.R

coerce_bytes_literals_to_stringR Documentation

Transforms a python2 string literal or python3 bytes literal into an R string

Description

This is useful to call eg for the KMS call, where python2 returns a string, but python3 returns bytes literals – calling "decode" is tricky, but bytearray conversion, then passing the raw vector to R and converting that a string works.

Usage

coerce_bytes_literals_to_string(x)

Arguments

x

string

Value

string


daroczig/botor documentation built on March 15, 2023, 12:23 p.m.