File: base64_encode.Rd

package info (click to toggle)
r-cran-openssl 2.0.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,312 kB
  • sloc: ansic: 3,074; sh: 20; makefile: 5
file content (28 lines) | stat: -rw-r--r-- 745 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/base64.R
\name{base64_encode}
\alias{base64_encode}
\alias{base64_decode}
\title{Encode and decode base64}
\usage{
base64_encode(bin, linebreaks = FALSE)

base64_decode(text)
}
\arguments{
\item{bin}{raw or character vector with data to encode into base64}

\item{linebreaks}{insert linebreaks in the base64 message to make it more readable}

\item{text}{string with base64 data to decode}
}
\description{
Encode and decode binary data into a base64 string. Character vectors are
automatically collapsed into a single string.
}
\examples{
input <- charToRaw("foo = bar + 5")
message <- base64_encode(input)
output <- base64_decode(message)
identical(output, input)
}