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

not working in bookdown #38

Open
hardin47 opened this issue Jul 27, 2022 · 0 comments
Open

not working in bookdown #38

hardin47 opened this issue Jul 27, 2022 · 0 comments
Labels
enhancement New feature or request knit formats issue flair being weird with certain doc types

Comments

@hardin47
Copy link

This might be totally user error, so feel free to delete this issue. Flair used to work (sorry, can't remember versions) happily with bookdown. And now I get the following errors:

macnell <- readr::read_csv("https://raw.githubusercontent.com/statlab/permuter/master/data-raw/macnell.csv")
macnell %>% 
  group_by(tagender) %>%
  mutate(permTAID = sample(taidgender, replace=FALSE)) %>%
  select(overall, tagender, taidgender, permTAID) 
flair::decorate("mac1") %>%
  flair::flair("group_by(tagender)") 

Error in if (doc_type == "pdf_document") { : the condition has length > 1 Calls: local ... knit_print -> knit_print.decorated -> map -> .f -> prep_source

The error isn't reproducible because flair works beautifully when I take the code and put it into its own .Rmd. Thanks!

@kbodwin kbodwin added enhancement New feature or request knit formats issue flair being weird with certain doc types labels Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request knit formats issue flair being weird with certain doc types
Projects
None yet
Development

No branches or pull requests

2 participants