search for: debugprint

Displaying 1 result from an estimated 1 matches for "debugprint".

Did you mean: debug_print
2009 Nov 18
1
getting the name of a single object in R for debugging output
I often use a debug flag (set to TRUE) to turn on various debugging print statements in my R scripts.  I was thinking I should create a function debugPrint(object,debugFlag), to print out the object name and contents if the debugFlag is set to TRUE.  Then I wouldn't have to make my script ugly(..er) than it already is by adding IF statements all over the place.  I've seen how ls() dumps object names, but how do I get access to the character re...