easystats / easystats/datawizard

Error in `data_filter()` when rendering Rmd with `lapply()`

Open
#379 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
238
Forks
18
Avg merge
1d 15h
Merged PRs (30d)
4

Description

Reprex:

  • save this in "vignettes/reprex.Rmd"
---
output: rmarkdown::html_document
---

```{r}
dat <- data.frame() # dataset doesn't matter here
test <- c("a", "b", "c")
x <- "a"

data_filter(dat, x %in% test)
```
  • remove all objects from global env
  • run lapply("vignettes/reprex.Rmd", rmarkdown::render)

Originally posted by @etiennebacher in https://github.com/easystats/easystats/issues/356#issuecomment-1470840292

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reproducible example in vignettes/reprex.Rmd and trace data_filter() while running lapply("vignettes/reprex.Rmd", rmarkdown::render) in a clean global environment. Confirm the failure and identify the relevant rendering path; done means the R Markdown file renders successfully without the data_filter() error.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.