Displaying 4 results from an estimated 4 matches for "r_call".
Did you mean:
__call
2000 Oct 24
1
R_eval in tcltk library
...hod with the current tcltk library in R to call back an R
function within the .Tcl("...") interpreter?
I can't find anything documented, and I don't understand the usefulness of
the .Tcl.callback() function. Browsing through the tcltk source code I found
two functions R_eval and R_call that seem to take input from the .Tcl
interpreter and parse them through the R evaluator. Unfortunately I get
Segmentation Fault (core dump) whenever I execute .Tcl("R_eval") or
.Tcl("R_call"). Also, the results from these functions appears to be lost
somewher. Both functions in...
2025 Jan 21
1
[tcltk] binding two functions to one event
...l','<<EVENT>>',paste0("+", .Tcl.callback(evresp2)))
<Tcl>
> tkevent.generate(wtop,'<<EVENT>>',data='abcdef')
evresp1 abcdef
evresp2 abcdef
<Tcl>
> tkbind('all','<<EVENT>>')
<Tcl> R_call 0x7f9769c764b0 %d
R_call 0x7f9769c79978 %d
-pd
PS. To answer my own question: yes, the "+" is part of the command because this does not work:
> tkbind('all','<<EVENT>>',"+", evresp2)
Error in structure(.External(.C_dotTclObjv, objv), class = &q...
2025 Jan 20
1
[tcltk] binding two functions to one event
Here is some tcl/tk code I am trying to emulate in R.
Paste the following into wish
### begin tcl code
toplevel .wtop
proc evresp1 { data } { puts "evresp1 $data" }
proc evresp2 { data } { puts "evresp2 $data" }
bind all <<EVENT>> "evresp1 %d"
bind all <<EVENT>> "+evresp2 %d"
### end tcl code
Now paste
event generate .wtop
2007 Sep 17
3
Call C code from R
Hello, All!
I'm new for R-devel list. And I'd like to ask some questions,
maybe they will be stuped for the most part of members of the
list.
I need to call function which is written in C++ from R.
My questions are:
1. How should I include libraries (for example, iomanip,
sstream, iostream)?
2. Can I use namespace?
Thanks All :)
Olga