Skip to content

Refactor interactionR_table: Simplify and standardize table saving interface #24

@LeafLight

Description

@LeafLight

background

The current implementation of interactionR_table has several usability and reproducibility issues regarding table export:

  • The file_path parameter is ambiguous: it is unclear whether it expects a directory or a full file name, and it does not allow users to specify a custom file name directly. (And it use path <- paste(file_path, "interaction.docx", sep = "\\")).
  • The function uses hard-coded file names and directory logic, making it difficult to control output location and file naming.
  • There is an interactive prompt (askYesNo) for saving, which is not suitable for automation

Proposal

Replace the file_path parameter with a single file argument that accepts either a full file path (including file name) or a directory. If a directory is provided, use a sensible default file name (e.g., interaction_table.docx)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions