Learn R Programming

The rcdf Package

The rcdf package is a comprehensive toolkit for securely working with RCDF (encrypted Parquet) files in R. RCDF is a custom data format designed to provide strong encryption and metadata management for sensitive datasets. With rcdf, users can easily handle encrypted data, including reading, writing, and exporting data stored in this secure format.

Key features include:

  • Secure data handling: Functions for reading and writing encrypted Parquet files using AES and RSA encryption.
  • Metadata management: Tools for handling and storing metadata in RCDF files, including automated key generation and decryption.
  • Parquet integration: Full integration with the arrow package to read and write Parquet files seamlessly.
  • Cross-platform support: Compatible with Linux, macOS, and Windows environments.

Installation

Install from CRAN with:

install.packages("rcdf")

You can also install the development version of rcdf from GitHub with:

# install.packages("devtools")
devtools::install_github("yng-me/rcdf")

Once installed, you can load the package and start working with RCDF files.

library(rcdf)

Copy Link

Version

Install

install.packages('rcdf')

Monthly Downloads

9

Version

0.1.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Bhas Abdulsamad

Last Published

December 3rd, 2025

Functions in rcdf (0.1.2)

write_rcdf_sav

Write RCDF data to SPSS .sav files
write_rcdf

Write data to RCDF format
write_rcdf_csv

Write RCDF data to CSV files
write_rcdf_sqlite

Write RCDF data to a SQLite database
write_rcdf_parquet

Write RCDF data to Parquet files
write_parquet

Write Parquet file with optional encryption
write_rcdf_as

Write RCDF data to multiple formats
write_rcdf_xlsx

Write RCDF data to Excel files
write_rcdf_dta

Write RCDF data to Stata .dta files
write_rcdf_json

Write RCDF data to JSON files
add_metadata

Add metadata attributes to a data frame
as_rcdf

Convert to rcdf class
read_env

Read environment variables from a file
read_parquet

Read Parquet file with optional decryption
get_data_dictionary

Extract data dictionary from RCDF object
get_rcdf_metadata

Extract metadata from an RCDF file
generate_rsa_keys

Generate RSA key pair and save to files
read_rcdf

Read and decrypt RCDF data
generate_pw

Generate a random password
rcdf_list

Create an empty rcdf object
write_rcdf_tsv

Write RCDF data to TSV files