Error in value[[3L]](cond) : object 'waves' not found Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>

I am trying to deploy an application through and the following error message appeared after I moved the "waves" variables (an object containing all of the data) to the global.R file. The application runs locally, but not when deployed on the server.

The global.R file loads another source file that contains functions for cleaning the data. I load the data into the waves objects by calling the main function from that source file. It appears that the other files are not able to locate the 'waves' object, but I am not sure why that is. Does anyone have any ideas on what might be wrong?