language-extensions/R/src/Logger.cpp
//--------------------------------------------------------------------------------------------------
// Name: Logger::LogRVariable
//
// Description:
//  Prints out the value of the given variable name using R's print function.
//  Only available in debug mode, not in release.
//  This function has a precondition that R's environment is already initialized,
//  otherwise it is a no-op.
//
:LogRVariable
Description:
Prints out the value of the given variable name using R's print function.
Only available in debug mode, not in release.
This function has a precondition that R's environment is already initialized,
otherwise it is a no-op.
: LogRVariable Description : Prints out the value of the given variable name using R ' s print function . Only available in debug mode not in release . This function has a precondition that R ' s environment is already initialized otherwise it is a no - op .
void Logger::LogRVariable(const string &name)
{
#if defined(_DEBUG) || defined(_VERBOSE)
	string printVariable = "message(" + name + ");";
	ExecuteScript(printVariable);
#endif
}
void Logger :: LogRVariable ( const string & name ) { #if defined ( _DEBUG ) || defined ( _VERBOSE ) string printVariable = " " + name + " " ; ExecuteScript ( printVariable ) ; #endif }
Name: Logger::LogRVariable
Description:
Prints out the value of the given variable name using R's print function.
Name : Logger :: LogRVariable Description : Prints out the value of the given variable name using R ' s print function .