0

I am extracting url_search query using

query <- parseQueryString(session$clientData$url_search). #in Server.R

I need to pass query variable from server.R to global.R

hdfs_path <- MyQuery#in global.R

I am not able to make 'query' as a global variable so that it is read in Global.R. Is there way to pass the query variable to Global.R?

I tried this solution, but did not work for me:

MyQuery <- reactiveValues() #in Global.R 

assign('MyQuery',query,envir=.GlobalEnv) #assign from server.R to global.R

Please help as I am not able to find a solution for this.

0 Answers0