Extract Database Code from CIF Content
extract_database_code.RdExtracts the database code identifier (e.g., from _database_code_) from the CIF.
Examples
cif_path <- system.file("extdata", "1590946.cif", package = "crystract")
if (file.exists(cif_path)) {
cif_content <- read_cif_files(cif_path)[[1]]
extract_database_code(cif_content)
}
#> [1] "depnum_ccdc_archive CCDC 1590946"