I\'m trying to write a function, which limits the scope of R variables. For example,
source(\"LimitScope.R\") y = 0 f = function(){ #Raises an error as y
You can check if y exists in the global environment using exists('y',envir=.GlobalEnv)
exists('y',envir=.GlobalEnv)