save_project_state: Save and manage project state

View source: R/project.R View source: R/annotate_gui.R

save_project_stateR Documentation

Save and manage project state

Description

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.

Usage

save_project_state(state, filename)

save_project_state(state, filename)

Arguments

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

filename

Character string specifying the filename for saving

Value

Invisible NULL, called for side effect of saving project state

Invisible NULL. Called for side effect of saving project state.


textAnnotatoR documentation built on April 3, 2025, 7:35 p.m.