From ecb4d24154a81ab5be04cc327fbee461301bbe34 Mon Sep 17 00:00:00 2001
From: Dorchies David <david.dorchies@irstea.fr>
Date: Fri, 7 Aug 2020 09:41:17 +0200
Subject: [PATCH] test: add \dontrun to DiagramGriwrm example

---
 R/DiagramGriwrm.R | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/R/DiagramGriwrm.R b/R/DiagramGriwrm.R
index 05f121c..a285c0a 100644
--- a/R/DiagramGriwrm.R
+++ b/R/DiagramGriwrm.R
@@ -12,10 +12,12 @@
 #' @export
 #'
 #' @examples
+#' \dontrun{
 #' # Display diagram
 #' DiagramGriwrm(griwrm)
 #' # Is the same as
 #' DiagrammeR::mermaid(DiagramGriwrm(griwrm, display = FALSE), width = "100%", height = "100%")
+#' }
 #'
 DiagramGriwrm <- function(griwrm, display = TRUE, orientation = "LR") {
   if(Sys.getenv("RSTUDIO") != "1") {
-- 
GitLab