Creates a memo of one of four kinds. The kind follows from the arguments
unless given explicitly: start/end (with source) -> passage memo,
only source -> document memo, code -> code memo, nothing -> project
memo (as in earlier versions: qda_memo_add("text")).
Usage
qda_memo_add(
text_,
source = NULL,
start = NULL,
end = NULL,
code = NULL,
title = "",
kind = NULL
)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_memo_add("Sharpen question 3 of the guide") # project
qda_memo_add("Calm atmosphere, interviewee nervous", source = 1) # document
qda_memo_add("Only code explicit statements", code = "SME",
title = "Coding rule") # code
qda_memo_add("Turning point?", source = 1, start = 120, end = 200) # passage
qda_memos()
#> # A tibble: 4 × 13
#> id kind title text_ source_id source code_id code start end passage
#> <int> <chr> <chr> <chr> <int> <chr> <int> <chr> <int> <int> <chr>
#> 1 1 project "" Shar… NA NA NA NA NA NA NA
#> 2 2 document "" Calm… 1 inter… NA NA NA NA NA
#> 3 3 code "Codi… Only… NA NA 2 SME NA NA NA
#> 4 4 passage "" Turn… 1 inter… NA NA 120 200 d morn…
#> # ℹ 2 more variables: created_at <chr>, updated_at <chr>
qda_close()