easystats / easystats/datawizard
Error in `data_filter()` when rendering Rmd with `lapply()`
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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