Skip to contents

Writes files into path (default: exports/ next to the project file).

Usage

qda_export(what = "all", path = NULL, report_documents = TRUE)

Arguments

what

One or more of "all", "segments", "codings", "codebook", "audit", "cases", "report", "qdpx".

path

Output directory (created if missing).

report_documents

Logical; include every document with its marks in the report (TRUE, default). FALSE writes the overview only, which is much faster and smaller for large projects.

Value

Invisibly, a tibble of written files: file, what, rows.

Details

  • "segments": all codings with extracted text – CSV, plus .xlsx if the writexl package is installed

  • "codings": raw codings table – CSV

  • "codebook": the code tree – CSV and .docx (via officer)

  • "audit": the full events audit trail – CSV

  • "cases": the cases with their variables and members (documents or passages) – CSV, one row per member (see qda_cases())

  • "report": a standalone HTML report – all documents with colored coding marks, the codebook, all memos and project statistics

  • "qdpx": the whole project in the REFI-QDA exchange format for MAXQDA, ATLAS.ti, NVivo, QualCoder ... (see qda_export_qdpx())

  • "all": all of the above except "qdpx" ("cases" only if the project has cases)

Examples

qda_open(file.path(tempfile(), "example.jellyqda"))
qda_import(system.file("extdata", "interview_01.txt", package = "jellyqda"))
#> # A tibble: 1 × 5
#>      id name             format chars status
#>   <int> <chr>            <chr>  <int> <chr> 
#> 1     1 interview_01.txt txt      856 ok    
qda_code_add("Career path")
qda_code_add("SME", parent = "Career path")
qda_code(1, "SME", segment = 2)
out <- qda_export("all")
basename(out$file)
#> [1] "segments_20261130-150601.csv"  "segments_20261130-150601.xlsx"
#> [3] "codings_20261130-150601.csv"   "codebook_20261130-150601.csv" 
#> [5] "codebook_20261130-150601.docx" "audit_20261130-150601.csv"    
#> [7] "report_20261130-150601.html"  
qda_export("audit")   # for the methods section
qda_close()