Skip to content

Increase character length in deparse calls #20

@orourabi

Description

@orourabi

The number of confounders / length of confounder names is currently being limited by the call to deparse here

This results many confounders being deparsed to "one + two + three + four + five + six + seven + eight + nine + " " ten" or silly long names to "really_long_variable_name + another_really_long_variable_name + " " a_third_long_variable_name" which causes an error of:

Error in if (grepl("(?<![\\w\\.])\\.(?![\\w\\.])", deparse(matchedCall$confounders), :
the condition has length > 1

I think if the width.cutoff parameter was increased in the deparse call, this would avoid this problem but I haven't checked if there would be more problems downstream.

This is probably an odd use case to have many confounders or confounders with long names, so maybe isn't a priority fix, or maybe you know a workaround (this is my first time trying to use this function!)

Thanks for making so many useful BART-related packages!

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