Skip to content

Commit

Permalink
adress PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Jul 29, 2024
1 parent c16abb7 commit a9cf93a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions vignettes/tidyverse_translation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,11 @@ if (all_deps_available) {
library(tidyr)
}
can_vignette_be_evaluated <- all_deps_available && getRversion() >= "4.1.0"
# Since we explicitly put `eval = TRUE` for some chunks, we can't rely on
# `knitr::opts_chunk$set(eval = FALSE)` at the beginning of the script.
# Therefore, we introduce a logical that is `FALSE` only if all suggested
# dependencies are not installed (cf easystats/easystats#317)
if (can_vignette_be_evaluated) {
evaluate_chunk <- TRUE
} else {
evaluate_chunk <- FALSE
}
evaluate_chunk <- all_deps_available && getRversion() >= "4.1.0"
```

This vignette can be referred to by citing the following:
Expand Down Expand Up @@ -93,6 +87,10 @@ This vignette is largely inspired from `{dplyr}`'s [Getting started vignette](ht
</div>

```{r, eval = evaluate_chunk}
library(dplyr)
library(tidyr)
library(datawizard)
data(efc)
efc <- head(efc)
```
Expand Down

0 comments on commit a9cf93a

Please sign in to comment.