current.app: Return the currently running AnalysisPage app
Description
Return the currently running AnalysisPage app. The way this is done
is to first try to chase up the call stack and find the first environment which is
an AnalysisPageRApacheApp
, and return that. If that fails
then it looks for app
in the GlobalEnv and returns that. IF that
also fails then it reutrns NULL.
Value
Current AnalysisPageRApacheApp
, or NULL
if it can't be found.