I have a server.r file from shiny app. I have also an external file which I want to read it in server.r file.
So I use this:
library(shiny)
require(ggplot2)
source('myfile.R', local = FALSE)
but when I run the app it seems it doesn't read the file. If I open the myfile.R and run it alone after that app is working. Also, I tried to give the full path in source() but again it is not working. Is there any idea what can I do?
The error I receive is: Error : object 'x' not found
which is related because it doesn't read the myfile.r