[TxMt] Re: R-package - strange parsing errors

Hans-Jörg Bibiko bibiko at eva.mpg.de
Fri Oct 14 09:20:57 UTC 2011


On 13 Oct 2011, at 23:23, Martin Batholdy wrote:
> I start the Rdaemon with CMD+enter and then execute selected lines with the "execute selection" menu item.
> A small window pops up with a progress bar and the message "sending task to Rdaemon". 
> After this is finished the selection converts to R-output.
> 
> I don't have a separate R-window open.


> The script is actually not that large.
> It is just about 200 lines of code (8kb on disk).
> 
> But since I get this strange parsing-behavior always at the end of the script, I thought it has something to do with that.

Hi Martin,

ok, I got it [Rdaemon offers flexible workflows ;) ]


The point is that the output of the R console which runs in the background will be parsed by a Perl script to clean the output since it could contain many control characters etc. I guess that's the problem.

Important: Which MacOSX and R version do you running?

and

Please do the following:
- start a new Rdaemon session
- execute your R code in question
- go to the "R Console (Rdaemon)" menu > "Rdaemon Tools" > "Logfiles" > "Open console log file r_out" [short-cut ⌥⌘T]
- a new window should appear showing the RAW output of the current R session's output [don't be confused ;)]
- check the window's content for any confidential data and if you can send me the content please do this:
-- open Finder; go to ~/Library/Application Support/Rdaemon; and send me the file "r_out" [please do not copy/save the content file to another file since editors can "destroy" its content due to possible control characters]

With this I can check the Perl script. Maybe I missed some output sequences to catch.

Best,
--Hans




More information about the textmate mailing list