Skip to content

using clin_group_by() with clin_auto_page(), if clin_auto_page drop is set to TRUE then running write_clindoc results in an error #91

Description

@PRawlinson-tfs

Dear clinify team,

Currently when using clin_group_by() with clin_auto_page(), if clin_auto_page drop is set to TRUE then running write_clindoc results in an error “Error in x$data[rows, columns, drop = FALSE] : subscript out of bounds”. Using these options together would be ideal for many by-visit continuous summaries like Vital Signs or Labs, where the Parameter is a subtitle and we want to keep all summary stats (n, mean, sd, median, min, max) for a visit together on a page. For example:

ct <- clintable(df) |>
clin_group_by("PARAM") |>
clin_auto_page("AVISITN", drop=TRUE)

write_clindoc(
x = ct,
file =”table.docx"
)

Is there a known work-around for this? Or perhaps I’ve just missed something?

Many thanks for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions