Base64 encoding and decoding for R
open sourceGPL-2.0-only OR GPL-3.0-onlyfree
base64enc is a small R package for base64 encoding and decoding. It encodes files, binary connections or raw vectors to base64 and decodes them back, builds data: URIs, and checks whether raw bytes are valid UTF-8. Its maker describes it as more flexible than the orphaned base64 package.
Problems it solves
- base64-encode a file or raw bytes in R
- decode a base64 string back to binary data in R
- embed an image in HTML from R as a data URI
Features
- encode files, binary connections or raw vectors as base64
- decode base64 back to raw vectors or connections
- build data: URIs with base64 or URI encoding
- check whether a raw vector is valid UTF-8
