This R package provides tools for handling base64 encoding. See RForge page and R documentation.
To install the CRAN version, use simply
install.packages("base64enc")
For installation of the latest development version, use
install.packages("base64enc", repo="https://rforge.net")