From 980a2796e29d05c952322ba66dcedb2cbc8f51d9 Mon Sep 17 00:00:00 2001 From: Florian Mayer Date: Tue, 23 Jul 2024 13:54:45 +0800 Subject: [PATCH] Experiment: pre-commit hook deps-in-desc * Address warnings --- .pre-commit-config.yaml | 1 + vignettes/odata-api.Rmd | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2d71457e..6c3036b5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,6 +42,7 @@ repos: # name: Spellcheck - id: deps-in-desc name: Ensure that DESCRIPTION lists all dependencies + args: [--allow_private_imports, --root=R] - id: use-tidy-description name: Format DESCRIPTION # - id: lintr diff --git a/vignettes/odata-api.Rmd b/vignettes/odata-api.Rmd index 05ebf8aa..63a04089 100644 --- a/vignettes/odata-api.Rmd +++ b/vignettes/odata-api.Rmd @@ -355,7 +355,7 @@ This section provides some examples of standard data visualisations. ## Datatable The package `DT` provides an interactive (and searchable) datatable. -```{r vis_data} +```{r vis_data, eval = requireNamespace("DT")} DT::datatable(fq_data) DT::datatable(fq_data_taxa) DT::datatable(fq_data_strata)