Saves the current state of a text annotation project, including annotations, codes, and memos. Creates necessary directories and handles file operations safely.
Saves the current project state including text, annotations, codes, code tree, and other metadata to an RDS file. Creates the projects directory if it doesn't exist.
save_project_state(state, filename)save_project_state(state, filename)
Invisible NULL, called for side effect of saving project state
Invisible NULL. Called for side effect of saving project state.
List containing project state elements:
text: Character string of the current text
annotations: Data frame of annotations
codes: Character vector of codes
code_tree: Node object representing code hierarchy
code_colors: Named vector of code colors
memos: List of memos
code_descriptions: List of code descriptions
Character string specifying the filename for saving