Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output of errors has issues with (rlang) special characters #86

Closed
Tracked by #69
nikolas-burkoff opened this issue Nov 2, 2022 · 0 comments · Fixed by #87
Closed
Tracked by #69

Output of errors has issues with (rlang) special characters #86

nikolas-burkoff opened this issue Nov 2, 2022 · 0 comments · Fixed by #87
Assignees
Labels

Comments

@nikolas-burkoff
Copy link
Contributor

nikolas-burkoff commented Nov 2, 2022

I suspect this behaviour occurred with chunks too

image

And in console you get:
image

library(teal.code)
library(shiny)
library(dplyr)
library(teal.widgets)

ui <- fluidPage(
  plotOutput("plot"),
  verbatim_popup_ui("src", "SRC")
)

server <- function(input, output, session) {

  q1 <- reactive({
    new_qenv() %>%
      eval_code(quote(x <- dplyr::select(iris, f))) %>%
      eval_code(quote(p <- hist(iris[, "Species"])))
  })

  output$plot <- renderPlot(q1()[["p"]])

  verbatim_popup_srv("src", reactive(paste(teal.code::get_code(q1()), collapse = "\n")), title = "SRC")

}

shinyApp(ui, server)

Note:
image

@nikolas-burkoff nikolas-burkoff changed the title Output of errors has issues with special characters Output of errors has issues with (rlang) special characters Nov 2, 2022
@nikolas-burkoff nikolas-burkoff self-assigned this Nov 2, 2022
@nikolas-burkoff nikolas-burkoff linked a pull request Nov 2, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant