Dear all,
Hope you can help me fix the following error:
Error in eval: object 'mydata' not found
Before building the webpage and running the server function, I define 'mydata':
mydata=read.csv('mydata.csv',sep='\t')
However, somehow this error occurs. I think it is related to the fact that, within the server function of Rshiny, I am trying to predict a model (mymodel) that was fitted with mydata, as below. Perhaps mydata should be explicitly defined within the server function..?
server <- function(input, output, session) {
output$plot <- renderPlot(
width=600,
height =400,
{
## some irrelevant code I left out ##
pred <- predictAll(mymodel, newdata=newdata)
## plotting based on pred ##
})
Thanks very much for your help!
Best,
Merel