Skip to content

Chunk assumes 'emmeans' attached though it won't be unless 'afex' is installed #702

Description

@MichaelChirico

```{r, eval = .eval_if_requireNamespace("emmeans")}

{emmeans} is attached in an earlier chunk if {afex} is available:

```{r, eval = .eval_if_requireNamespace("afex", "emmeans")}
library(emmeans)

I'm not sure how you'd like to fix this, e.g.

  • Add a hidden chunk for library(emmeans) somewhere
  • Add library(emmeans) redundantly (and ineffectually in most cases) in the later chunk
  • Use emmeans:: in the later chunk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions