My ui.R looks this
library(shiny)
library(Sim.DiffProc)
shinyUI(fluidPage(
titlePanel("Sliders"),
sliderInput(inputId = "theta",label="Theta:",
min=1, max=50, value=5),
plotOutput("SDE")
))
And the server.R is the following
library(shiny)
library(Sim.DiffProc)
shinyServer(function(input, output)
{
result<-reactive({
f<-expression(x*(1-(x/1000))^input$theta*0.5)
g<-expression(x*(1-(x/1000))^input$theta*0.2)
snssde1d(drift=f,diffusion=g, M=5, x0=100)
})
output$SDE<-renderPlot({
plot(result(), plot.type="single", col="lightgrey")})
})
I always get the following error: object 'input' not found I can't figure out what's the problem. Why is not reacting my theta? Thank you for help!