powered by
Encode and decode binary data into a base64 string. Character vectors are automatically collapsed into a single string.
base64_encode(bin, linebreaks = FALSE)base64_decode(text)
base64_decode(text)
raw or character vector with data to encode into base64
insert linebreaks in the base64 message to make it more readable
string with base64 data to decode
input <- charToRaw("foo = bar + 5") message <- base64_encode(input) output <- base64_decode(message) identical(output, input)
Run the code above in your browser using DataLab