similar to: Adding Tcl source to an R package

Displaying 20 results from an estimated 30000 matches similar to: "Adding Tcl source to an R package"

2010 Aug 12
2
accessing tcl variables within R and tcl
Dear R users, I have some troubles with dealing with tclObj objects. I try to explain it with a toy example: Say I define the following tcl procedure which just prints out each list element library(tcltk) .Tcl('proc test {myList} { foreach i $myList { puts stdout $i } }') and I call it with: > tcl('test',letters[1:5]) # Works as expected Now say I define
2015 Sep 28
2
Link R with Tcl 8.6 on Windows
Dear all, I am working on an R package intended for CRAN that requires Tcl version 8.6 because of the TclOO tcl extension and the -angle option for canvas text items. R for Windows currently still ships with Tcl 8.5. Does anyone have experience with linking R under Windows to a Tcl interpreter of version 8.6? When I link R 3.2.2 (installed from the binary on Windows 8) to a custom Tcl
2011 Feb 08
1
Compiling a Tcl extension for an R package
Dear R developers, I plan to upload a first version of my R package RnavGraph to the R CRAN server in a week or two. However I'm still struggling with an image resizing function written in C as a tcl extension. I did all my development in Ubuntu, and everything works fine in Ubuntu, however my attempts to compile this C function under Windows or OSX have all failed. I provide a minimal self
2010 Aug 30
1
Including C Code for Tcl and Tk in an R package
Dear R Community, I adapted the C-Code found at (http://wiki.tcl.tk/25685) implementing fast image resizing for Tk images for my R package. The C Code differs for tcl/tk version 8.4 and 8.5. I have the working code for both versions. How do I integrate this C-Code into my package so that R CMD INSTALL takes care of compiling the function correct for each OS and tcl version? (such that I can
2010 Sep 01
1
Installing a Tcl/Tk Extension on OSX
Dear R-Community, I need the Img tk extension for my R package. It all works on my Ubuntu machine (libtk-img). However I experience a great deal of trouble when I try to install the package on OSX 10.5 or 10.6 (in fact I'm not able to do it). As I understand it, the ActiveTcl with it's teacup package manager do not have an effect on the the x11 tcl installation which R accesses. MacPorts
2010 Nov 08
0
Compiling Tcl extension C Code for an R package
Dear R Community, I'm working on an R package that needs resizing of images. I try to keep dependencies of Tcl packages as little as possible, so I implemented the Image Scaling procedure in C as a Tcl extension found here http://wiki.tcl.tk/25685 . Here a temporary download link of the slightly modified source http://www.waddell.ch/RnavGraph/imagescale_adrian_85.c The file works with the
2010 Jun 11
1
Windows, OSX and Linux: updating a graphic device and double buffering
Hello there, I'm struggling with the base graphics system on different operating systems. I would like to get an animation effect by re-plotting with the plot function. See the attached code example: move the slider quick from one side to the other. I experience different levels of success, depending on which OS I use. - Linux (Ubuntu >9.10, R 2.9.2-3): Each plot command gets
2007 Oct 30
2
slow tcl/tk
Dear list, Building my QCAGUI package using Rcmdr 1.3.0, under R 2.6.0 (using Kubuntu Gutsy) I noticed the library starts visibly slower than... somewhere in the past. I used the same version of Rcmdr under previous versions of R and the tcl/tk window used to open instantly. Under the current version though, the window take seconds to open: first it builds the base window, then the menus and
2013 Apr 10
3
windows compile R from source, where do I put the Tcl directory?
Hi, I am trying to compile R from source on Windows. I am following the instructions here 3.1 Building from source 3 Installing R under Windows file:///F:/ProgramFiles/R/R-2.15.3/doc/manual/R-admin.html It only says,? " The Tcl/Tk support files are contained in Rtools30.exe and? available as .zips from http://www.stats.ox.ac.uk/pub/Rtools.? Please make sure you install the right version:
1999 Jun 30
1
New packages (tcl/tk <-> R glue + Visual Tcl)
[Reposted by R-announce-owner because of R-announce protection. Guido is subscribed under a different E-mail..] I have made available in the 'Contributed R code | Devel' section of CRAN (in this moment only at Wien) two new packages: 'tcltk': this package let to create and use tcl/tk interpreters from R. The tcl interpreters have an additional command
1999 Jun 30
1
New packages (tcl/tk <-> R glue + Visual Tcl)
[Reposted by R-announce-owner because of R-announce protection. Guido is subscribed under a different E-mail..] I have made available in the 'Contributed R code | Devel' section of CRAN (in this moment only at Wien) two new packages: 'tcltk': this package let to create and use tcl/tk interpreters from R. The tcl interpreters have an additional command
2008 Aug 08
2
Tcl\tk not supported on this system
In trying to install the pbatR package, I was greeted with the error Error: package 'tcltk' does not have a name space Execution halted Directly installing the package tcltk2 returned the following error: Loading required package: tcltk Error in firstlib(which.lib.loc, package) : Tcl/Tk support is not available on this system I have seen from previous posts that tcl/tk must be
2008 May 04
1
Change in the Tcl/Tk loading in R 2.7.0 (under Unix/Mac OS X)?
Hello, Up to R 2.6.2, I used to start Tcl *without Tk* (I need only Tcl for some part of my work, like a socket server written in Tcl only, for instance) with this code under Mac OS X (particularly on this system, because I don't want to start X11 just to use Tcl code, which is required for Tk!): > Sys.unsetenv("DISPLAY") > library(tcltk) I got then the message
2005 Oct 15
6
R GUI considerations (was: R, Wine, and multi-threadedness)
Hello, Following a discussion initiated on r-devel, that mentions SciViews-R and other GUIs issues for R, I would like to make comments (and would be happy if these comments would initiate interesting initiatives). A big, big problem with SciViews-R is that a part of it is written in Visual Basic 6, a M$$$$ language, not supported any more, buggy, non transposable to other platforms, etc,
2009 Jan 15
1
About Tcl/Tk after command in R
Dear R-helpers, I have a problem with the tcl "after" instruction. When I send: > library(tcltk) Loading Tcl/Tk interface ... done > tcl("after",1000,cat("try tcl after\n")) try tcl after <Tcl> the tcl command works fine. Similarly, the tcl command: > tcl("after",1000,plot(rnorm(100))) <Tcl> works fine. But, if I send the command:
2003 Sep 05
1
Installing R on Red Hat Linux, Tcl/Tk
Hi, I've been trying to install R on Red Hat Linux 9 for some potential users of my R/TclTk application. I tried using the rpm for R 1.7.1 for Red Hat Linux 9. It told me that I needed: libtcl8.3.so so I looked for a binary release of Tcl 8.3.x on http://www.tcl.tk/software/tcltk/8.3.html but found that the link to the Tcl 8.3.x binaries pointed to ActiveTcl 8.4.x . I couldn't see
2001 Oct 04
1
tcl/tk & Windows2000?
Hello, i have some problems to run tcltk/R on with Win2000. With Win98 i have no problems !? When i do this in R, i get no message-error & tcl/tk is really here ! Sys.putenv("TCL_LIBRARY"="C:/tcl/lib/tcl83") ,but after i use : library(tcltk) ,i get : Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library
2003 Apr 17
1
Help with TCL packages
Hello, I am exploring the TCLTK package under R and try to load and use additional TCL libraries (under Windows, with TCL8.3). For example : > addTclPath("C:/TCL/lib/bwidget1.5") > tclRequire("BWidget") <Tcl> 1.5 Loading seems to work, but when I try to create a specific widget : # The main window appears correctly > top=tktoplevel() # Trying to insert a
2001 Mar 24
1
Telling tcltk where tcl is?
The installation of R I'm using (R 1.2.0 on Redhat Linux (R-base-1.2.0-2.i386.rpm)) apparently expects to find tcl in ./share/tcl8.0, ./share/tcl8.0 or /usr/local/share/tcl8.0: > library (tcltk) Error in firstlib(which.lib.loc, package) : Can't find a usable init.tcl in the following directories: ./share/tcl8.0 ./share/tcl8.0 /usr/local/share/tcl8.0 However, tcl is installed in
2024 Feb 20
2
Tcl socket server (tcltk) does not work any more on R 4.3.2
Dear list, It seems that something changed between R 4.2.3 and R 4.3 (tested with 4.3.2) that broke the Tcl socket server. Here is a reproducible example: - R process #1 (Tcl socket server): library(tcltk) cmd <- r"( proc accept {chan addr port} { ;# Make a proc to accept connections puts "$addr:$port says [gets $chan]" ;# Receive a string puts $chan goodbye