search for: setsrcsource

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

2011 Nov 16
0
Injecting source reference from external editors (emacs).
...hout encapsulation? Currently when a function "tf<-function(a){a^5}" is created at R prompt, R associates with it a srcref with empty srcfile reference. I wonder if it would be possible to instruct R that next evaluation will be from buffer "Xbuf" at line N, something like setSrcSource(srcobject="buffX", srcline=45) so that any input that follows, would get a srcref pointing to "buffX" starting from line 45 instead of just empty reference? At the end of the evaluation I would just reset R with setSrcSource(NULL) Thanks, Vitalie.