<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div><br></div><div>I am using the wonderful Rdaemon-bundle in TextMate.</div><div><br></div><div>But now I stumbled over a big problem parsing code to the Rdaemon</div><div>(by selecting the code and pressing CMD+T or selecting "execute selection").</div><div><br></div><div><br></div><div>It is a rather long script and some of the lines at the end of the script do not get parsed correctly.</div><div>They kind of get completely screwed up leading to error messages.</div><div><br></div><div><br></div><div>For example, this line in the original code:</div><div><br></div><div><div><i>for(i in 1:length(x)) {   prt_reduced[,x[i]]  <- reorder(prt_reduced[,x[i]], c(2,1)) }</i></div></div><div><br></div><div>looks like this after pressing CMD+T:</div><div><br></div><div><div><i>> for(i in 1:length(x)) {   prfor(i in 1:length(x)) {   prfor(i in 1:length(x)) {   prfor(i in 1:egory</i></div><div><i>Error: unexpected 'in' in "for(i in 1:length(x)) {   prfor(i in"</i></div></div><div><br></div><div><br></div><div><br></div><div>It seems to have something to do with the length of the script.</div><div><br></div><div>When I just execute this line, or chunks of code step by step, it works fine.</div><div>But if I try to run the whole script (with CMD+A, CMD+T) strange things happens at the end of the script (like this screwed up line above).</div><div><br></div><div><br></div><div>If I try to make the code smaller (delete lines etc.), it seems like different lines get affected by this strange behavior</div><div>(at it always happens at the end of the script).</div><div><br></div><div>So it seems to have nothing to do with particular lines of codes, but as I said, the length of the script.</div><div>As if at some point the parsing of code to the Rdaemon doesn't work anymore (perhaps something like buffer-overflow?).</div><div><br></div><div><br></div><div><br></div><div>hope someone can help!</div><div><br></div><div>thanks. </div><div><br></div><div><br></div></body></html>