Dear all How could I properly debug Rcmdr GUI-creation code? I am working on my plug-in and I get a strange error in an unexpected place. When I try to debug it via browser()---just before the offending line---and then 'n' to enter the step-through debugger, I always get stopped at the first doItAndPrint(). Browse[1]> search [1] "asdf" Browse[1]> searchCommand [1] "findFn('asdf')" Browse[1]> n debug at /home/liviu/Devel/Rcmdr-dev/Rcmdr.sos/RcmdrPlugin.sos-0.1-0/R/sosInit.R#51: doItAndPrint(paste("## Launching RSiteSearch, please be patient..")) Browse[2]> n Error in function () : invalid connection Error: invalid connection
However I know that the error doesn't occur there, since when I use the same "asdf" string in the non-debug section, the function outputs as expected. (It is for more complex strings such as "asdf ; HTMLgrid" that the function unexpectedly terminates with the above error, in non-debug sessions). How should I correctly debug Rcmdr GUI-creation code? Thank you Liviu -- Do you know how to read? http://www.alienetworks.com/srtest.cfm Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail _______________________________________________ R-SIG-GUI mailing list R-SIG-GUI@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-gui