Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtf_enode fails when data contains NA and fixed-width font is used #118

Closed
lzeitlin opened this issue Aug 26, 2022 · 3 comments
Closed

rtf_enode fails when data contains NA and fixed-width font is used #118

lzeitlin opened this issue Aug 26, 2022 · 3 comments

Comments

@lzeitlin
Copy link

When the input data includes NA values and a fixed font (e.g. text_font=9) is used, rtf_encode fails with the message:

Error in if (any(index)) { : missing value where TRUE/FALSE needed

Example code:

library(tidyverse)
library(r2rtf)
df <- tibble(col = c("A", NA, "B"))
df %>% rtf_body(text_font = 9) %>% rtf_encode()

nanxstats added a commit that referenced this issue Aug 26, 2022
@riawoo
Copy link

riawoo commented Mar 15, 2023

I have the exact same problem. How do I solve this problem?

@elong0527
Copy link
Collaborator

Could you provide a reproduce example and your package version?

@elong0527 elong0527 reopened this Mar 15, 2023
@riawoo
Copy link

riawoo commented Mar 15, 2023

Please refer to issue 146

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants