Skip to contents

Reads one or more CIF files from disk and loads each into a data.table. It includes encoding sanitization to handle legacy characters.

Usage

read_cif_files(file_paths)

Arguments

file_paths

A character vector of paths to the CIF files.

Value

A list of data.table objects.

Examples

cif_path <- system.file("extdata", "1590946.cif", package = "crystract")
if (file.exists(cif_path)) {
  cifs <- read_cif_files(cif_path)
}