Skip to content

Commit

Permalink
eval conditional on gt
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Jun 9, 2024
1 parent a262748 commit 00a94bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,5 @@ RoxygenNote: 7.3.1
Roxygen: list(markdown = TRUE)
Config/testthat/edition: 3
Config/testthat/parallel: true
Config/Needs/website:
rstudio/bslib,
r-lib/pkgdown,
easystats/easystatstemplate
Config/Needs/website: easystats/easystatstemplate
Config/rcmdcheck/ignore-inconsequential-notes: true
8 changes: 4 additions & 4 deletions vignettes/model_parameters_print.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ editor_options:
bibliography: bibliography.bib
---

```{r , include=FALSE}
library(knitr)
```{r, include=FALSE}
options(knitr.kable.NA = "")
options(digits = 2)
Expand All @@ -25,19 +24,20 @@ knitr::opts_chunk$set(
collapse = TRUE,
warning = FALSE,
message = FALSE,
eval = requireNamespace("gt", quietly = TRUE),
comment = "#>",
out.width = "100%",
tidy.opts = list(width.cutoff = 100)
)
pkgs <- c("gt", "datawizard", "glmmTMB", "parameters")
pkgs <- c("gt", "glmmTMB")
successfully_loaded <- sapply(pkgs, requireNamespace, quietly = TRUE)
if (all(successfully_loaded)) {
library(parameters)
library(datawizard)
library(glmmTMB)
library(gt)
}
set.seed(333)
Expand Down

0 comments on commit 00a94bc

Please sign in to comment.