Skip to content

not working in bookdown #38

Open
Open
@hardin47

Description

@hardin47

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestknit formats issueflair being weird with certain doc types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions