base64: Encode and Decode base64

base64R Documentation

Encode and Decode base64

Description

Wrapper for openssl::base64_encode.

Usage

encode(input, output = tempfile(), linebreaks = TRUE)

decode(input, output = tempfile())

Arguments

input

input file

output

output file

linebreaks

insert linebreaks to make output human readable See openssl::base64_encode

Examples

# encode a file
myfile <- R.home("COPYING")
tmp <- tempfile()
base64::encode(myfile, tmp)

# decode it back
orig <- tempfile()
base64::decode(tmp, orig)
readLines(orig)

jeroenooms/base64 documentation built on Aug. 23, 2022, 7:56 p.m.