botor (version 0.4.0)

coerce_bytes_literals_to_string: 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)

Value

string

Arguments

x

string