Displaying 3 results from an estimated 3 matches for "c_dottcl".
2024 May 28
1
How to call directly "dotTcl" C-function of the tcltk-package from the C-code of an external package?
...king a look at tcltk source code, it can be seen that the dotTcl is called using
.External within tcltk-package and there is a registration done for it with
R_registerRoutines. An object of class NativeSymbolInfo has also been created in the
tcltk namespace, and that can be accessed using tcltk:::.C_dotTcl.
However, the tcltk:::.C_dotTcl$address is an external pointer of a class
RegisteredNativeSymbol and not directly the function pointer to the actual routine. The
problem is that there appears not to be any R-level function that would extract the actual
function-pointer and that the C-interface for...
2013 Mar 18
1
Windows R-3.0.0 and Tcl/tkrplot issue
...here: http://tkrplot.sourcearchive.com/documentation/0.0.14/tcltkimg_8c_source.html
> library(tkrplot)
> library(tcltk)
> my.tkdev <- function() win.metafile(width=4,height=4)
> my.tkdev()
> plot(1:20)
> .Tcl("image create Rplot fred")
Error in structure(.External(.C_dotTcl, ...), class = "tclObj") :
[tcl] can't get device image.
This example works fine in R-2.15.3. I've emailed the package maintainer Luke Tierney but unfortunately he doesn't have the ability to build and test packages on windows.
Can anyone elucidate what tcltk changes have...
2024 May 30
1
How to call directly "dotTcl" C-function of the tcltk-package from the C-code of an external package?
...tcltk source code, it can be seen that the dotTcl is called using
> .External within tcltk-package and there is a registration done for it with
> R_registerRoutines. An object of class NativeSymbolInfo has also been created in the
> tcltk namespace, and that can be accessed using tcltk:::.C_dotTcl.
>
> However, the tcltk:::.C_dotTcl$address is an external pointer of a class
> RegisteredNativeSymbol and not directly the function pointer to the actual routine. The
> problem is that there appears not to be any R-level function that would extract the actual
> function-pointer and...