Package 'rapidxlsx'

Title: Fast Parallel Excel Spreadsheet Writer
Description: Serializes tabular data frames to Microsoft Excel 'OpenXML' ('xlsx') workbooks using a multi-threaded Rust core with parallel Deflate compression and zero-copy columnar memory mapping.
Authors: Amin Fathullah [aut, cre]
Maintainer: Amin Fathullah <[email protected]>
License: MIT + file LICENSE
Version: 0.1.0
Built: 2026-10-28 11:29:47 UTC
Source: https://github.com/aminfathullah/rapidxlsx

Help Index


Write Data Frame to XLSX File

Description

Writes tabular data to an Excel XLSX workbook using a multi-threaded Rust engine with parallel Deflate compression.

Usage

write_xlsx(data, path, sheet_name = "Sheet1", compression_level = 1L)

Arguments

data

A data.frame or object coercible to a data.frame.

path

Path to output XLSX file.

sheet_name

Name of worksheet (default: "Sheet1").

compression_level

Deflate compression level (1 to 9, default: 1).

Value

Invisibly returns the path to the written file.

Examples

df <- data.frame(
  id = 1:5,
  name = c("Alice", "Bob", "Charlie", "David", "Eva"),
  score = c(95.5, 82.0, 91.5, 78.0, 88.5),
  active = c(TRUE, FALSE, TRUE, TRUE, FALSE)
)
tmp <- tempfile(fileext = ".xlsx")
write_xlsx(df, tmp)