We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
app$setValue()
app$setInputs()
In a code chunk, there is a line of code app$setValue(x = 2), but it returns an error. Error in app$setValue(x = 2) : unused argument (x = 2)
app$setValue(x = 2)
Error in app$setValue(x = 2) : unused argument (x = 2)
I think it needs to be either app$setInputs(x = 2) or app$setValue("x", 2).
app$setInputs(x = 2)
app$setValue("x", 2)
To experiment, I used this simple app:
library(shiny) library(testthat) library(shinytest) ui <- fluidPage( numericInput("x", "x", value = 3, min = 1, max = 5), plotOutput("plot", width = "400px") ) server <- function(input, output, session) { output$plot <- renderPlot(plot(seq_len(input$x)), res = 96) } app <- ShinyDriver$new(shinyApp(ui, server))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In a code chunk, there is a line of code
app$setValue(x = 2)
, but it returns an error.Error in app$setValue(x = 2) : unused argument (x = 2)
I think it needs to be either
app$setInputs(x = 2)
orapp$setValue("x", 2)
.To experiment, I used this simple app:
The text was updated successfully, but these errors were encountered: