Skip to content

Cells containing NA cause error with tableHTML formatting arguments #55

@smithn27

Description

@smithn27

Hi there,

First off - I want to say the tableHTML package has been very helpful to me and fairly intuitive, even for this new R user!

I'm writing because I was having an issue with the add_css_conditional_column() argument when trying to add background-color to cells based on their values. After trying various things, I submitted the question on Stack Overflow. The first answer told me two things:

  1. My initial problem was a stupid one - the cells I was trying to format contained strings, not numbers
  2. Even after converting cell contents to numbers, the tableHTML command generates an error which prevents the command from running, and (according to the answerer, who seems quite knowledgeable) is easily fixable on the back end of tableHTML()

I am requesting a fix to tableHTML(), to address the error and hopefully also the warning generated when running tableHTML on dataframes such as mine. I will point you to the Stack Overflow posting, since it contains sufficient code to reproduce the problem. I'm sorry to not describe it myself - I am new to R and the person who answered my Stack Overflow question did a good job of describing the issues with tableHTML.

https://stackoverflow.com/questions/79553889/tablehtml-conditional-formatting-misses-values-in-range/79553936#79553936

Thank you very much! tableHTML is helping me format a table of study data which will help advance some interesting medical research, so I really appreciate your work on this package.

Nathan

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