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

4,375

Version

0.1.4

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Bhas Abdulsamad

Last Published

March 3rd, 2026

Functions in rcdf (0.1.4)

get_rcdf_metadata

Extract metadata from an RCDF file
generate_rsa_keys

Generate RSA key pair and save to files
get_attr

Get metadata attribute from RCDF data
rcdf-package

rcdf: A Comprehensive Toolkit for Working with Encrypted Parquet Files
collect

Collect
generate_pw

Generate a random password
as_rcdf

Convert to rcdf class
rcdf_list

Create an empty rcdf object
merge_rcdf

Merge multiple RCDF files
add_metadata

Add metadata attributes to a data frame
write_rcdf_dta

Write RCDF data to Stata .dta files
read_env

Read environment variables from a file
read_dot_env

Read environment variables from a file
read_rcdf

Read and decrypt RCDF data
write_rcdf_csv

Write RCDF data to CSV files
read_parquet_tbl

Read Parquet file as database
write_rcdf_as

Write RCDF data to multiple formats
write_parquet

Write Parquet file with optional encryption
read_parquet

Read Parquet file with optional decryption
write_rcdf

Write data to RCDF format
write_rcdf_sqlite

Write RCDF data to a SQLite database
write_rcdf_tsv

Write RCDF data to TSV files
write_rcdf_json

Write RCDF data to JSON files
write_rcdf_parquet

Write RCDF data to Parquet files
write_rcdf_xlsx

Write RCDF data to Excel files
write_rcdf_sav

Write RCDF data to SPSS .sav files