Skip to content

Commit

Permalink
set eval to false for shiny code
Browse files Browse the repository at this point in the history
  • Loading branch information
donyunardi committed Aug 22, 2024
1 parent 47de715 commit d021b4e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vignettes/qenv.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,10 @@ These functions can be seamlessly integrated into `shiny` applications to produc

When employing a `qenv` to evaluate code, should an error occur, an object of type `qenv.error` is generated. This object can be utilized wherever a `qenv` object is used, alleviating the need for code alterations to handle these errors. Select the `error_option` in the example below to witness `qenv` error handling in action.

```{r}
```{r, eval=FALSE}
library(shiny)
library(magrittr)
# create an initial qenv with the data in
data_q <- qenv() %>% eval_code("iris_data <- iris")
data_q <- qenv() |> eval_code("iris_data <- iris")
ui <- fluidPage(
radioButtons(
Expand Down

0 comments on commit d021b4e

Please sign in to comment.