From e8be5a9f68260898b1ee9097841ff88976ff820a Mon Sep 17 00:00:00 2001 From: Jakub Nowicki Date: Tue, 1 Apr 2025 16:27:58 +0200 Subject: [PATCH 1/2] chore: Update package version. --- DESCRIPTION | 2 +- NEWS.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index d4c24219..ca186f34 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: rhino Title: A Framework for Enterprise Shiny Applications -Version: 1.10.1.9005 +Version: 1.11.0 Authors@R: c( person("Kamil", "Żyła", role = c("aut", "cre"), email = "opensource+kamil@appsilon.com"), diff --git a/NEWS.md b/NEWS.md index 43921eba..1ff32512 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# rhino (development version) +# rhino 1.11.0 1. Added destructure operator `%<-%`. 2. `test_r` accepts additional arguments passed to `testthat::test_dir`. From 79ae804bec451dc5590ae95d6dea4f7d5e4f21b5 Mon Sep 17 00:00:00 2001 From: Jakub Nowicki Date: Tue, 1 Apr 2025 17:55:37 +0200 Subject: [PATCH 2/2] chore: Fix CRAN issues. --- NEWS.md | 2 +- R/destructure.R | 3 ++- man/grapes-set-grapes.Rd | 3 ++- vignettes/faq.Rmd | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/NEWS.md b/NEWS.md index 1ff32512..b58ea7e5 100644 --- a/NEWS.md +++ b/NEWS.md @@ -49,7 +49,7 @@ See _[How-to: Rhino 1.7 Migration Guide](https://appsilon.github.io/rhino/articl when using a `legacy_entrypoint` ([#395](https://github.com/Appsilon/rhino/issues/395)). * Force evaluation of arguments in higher-order functions to avoid unexpected behavior due to lazy evaluation (internal). -3. Add support for [`shiny.autoreload`](https://shiny.posit.co/r/reference/shiny/latest/shinyoptions). +3. Add support for [`shiny.autoreload`](https://shiny.posit.co/r/reference/shiny/latest/shinyoptions.html). # [rhino 1.6.0](https://github.com/Appsilon/rhino/releases/tag/v1.6.0) diff --git a/R/destructure.R b/R/destructure.R index 779d906d..dcd16841 100644 --- a/R/destructure.R +++ b/R/destructure.R @@ -46,11 +46,12 @@ #' #' # Can be used with pipe operations #' # Note: The piped expression must be wrapped in brackets +#' \dontrun{ #' c(value) %<-% ( #' 123 |> #' list(value = _) #' ) -#' +#' } #' @export `%<-%` <- function(lhs, rhs) { # LHS validation diff --git a/man/grapes-set-grapes.Rd b/man/grapes-set-grapes.Rd index ec1e6a95..cbefb6a4 100644 --- a/man/grapes-set-grapes.Rd +++ b/man/grapes-set-grapes.Rd @@ -55,9 +55,10 @@ if (interactive()) { # Can be used with pipe operations # Note: The piped expression must be wrapped in brackets +\dontrun{ c(value) \%<-\% ( 123 |> list(value = _) ) - +} } diff --git a/vignettes/faq.Rmd b/vignettes/faq.Rmd index 616edeeb..c0fdede5 100644 --- a/vignettes/faq.Rmd +++ b/vignettes/faq.Rmd @@ -24,7 +24,7 @@ You can run a Rhino application exactly the same as a regular Shiny app: Call `options(shiny.autoreload = TRUE)` in your R session. Shiny will monitor the app directory and reload all connected sessions if any changes are detected. -More details can be found in [Shiny reference](https://shiny.posit.co/r/reference/shiny/latest/shinyoptions). +More details can be found in [Shiny reference](https://shiny.posit.co/r/reference/shiny/latest/shinyoptions.html). Note: you have to use `shiny::runApp()` for the autoreload to work - using `rhino::app()` _won't_ work. For context see [issue #3964 in Shiny](https://github.com/rstudio/shiny/issues/3964).