From f4bd00d5e19c333a8f4bb1da1190796360140d94 Mon Sep 17 00:00:00 2001 From: Actions Robot From Github Actions Date: Wed, 27 Nov 2024 14:42:49 +0000 Subject: [PATCH] Update gh pages from the PR --- dev/116/articles/example.html | 39 +- dev/116/articles/example_log.html | 120 +- dev/116/articles/summary.html | 4 +- dev/116/pkgdown.yml | 2 +- dev/116/reference/error.R | 4 + dev/116/reference/error_log.html | 5201 +++++++++++++++++++++++++++ dev/116/reference/run.html | 57 +- dev/116/reference/success.R | 4 + dev/116/reference/success_log.html | 5199 +++++++++++++++++++++++++++ dev/116/reference/summary.html | 703 ++++ dev/116/reference/warning.R | 10 + dev/116/reference/warning_log.html | 5231 ++++++++++++++++++++++++++++ dev/116/search.json | 2 +- dev/116/sitemap.xml | 4 + 14 files changed, 16485 insertions(+), 95 deletions(-) create mode 100644 dev/116/reference/error.R create mode 100644 dev/116/reference/error_log.html create mode 100644 dev/116/reference/success.R create mode 100644 dev/116/reference/success_log.html create mode 100644 dev/116/reference/summary.html create mode 100644 dev/116/reference/warning.R create mode 100644 dev/116/reference/warning_log.html diff --git a/dev/116/articles/example.html b/dev/116/articles/example.html index 5428928..f7cd0a7 100644 --- a/dev/116/articles/example.html +++ b/dev/116/articles/example.html @@ -73,17 +73,26 @@

In this example we are going to execute the following script and create a log of it’s execution:

-
#> #' Setup
-#> library(dplyr)
-#> library(ggplot2)
-#> #' Prepare data
-#> x <- mtcars |>
-#>   as_tibble(rownames = "car")
-#> print(x)
-#> #' Create and save plot
-#> ggplot(data = x) +
-#>   geom_point(mapping = aes(x = mpg, y = hp, size = wt, colour = as.factor(am)))
-#> ggsave("plot1.png")
+

example.R:

+
+#' Setup
+
+library(dplyr)
+library(ggplot2)
+
+#' Prepare data
+
+x <- mtcars |>
+  as_tibble(rownames = "car")
+
+print(x)
+
+#' Create and save plot
+
+ggplot(data = x) +
+  geom_point(mapping = aes(x = mpg, y = hp, size = wt, colour = as.factor(am)))
+
+ggsave("plot1.png")

We are going to use the run() function to execute the script, and since this vignette is created on Linux we can use the whirl.track_files option to automatically track the used @@ -94,7 +103,7 @@ options(whirl.track_files = TRUE) options(whirl.verbosity_level = "minimal")

The verbosity_level is set to minimal for -nicer printing in ths vignette. Now we are ready to execute the +nicer printing in this vignette. Now we are ready to execute the script:

 result <- run("example.R")
@@ -102,9 +111,9 @@
 
 print(result)
 #> # A tibble: 1 × 5
-#>      id tag   script                                         status result      
-#>   <dbl> <chr> <chr>                                          <chr>  <list>      
-#> 1     1 NA    /home/runner/work/whirl/whirl/vignettes/artic… succe… <named list>
+#> id tag script status result +#> <dbl> <chr> <chr> <chr> <list> +#> 1 1 NA /tmp/RtmpTxhihL/file1cef63e39112/example.R success <named list>

The script is now executed and you can access the logs below: