similar to: Compiling Tcl extension C Code for an R package

Displaying 20 results from an estimated 10000 matches similar to: "Compiling Tcl extension C Code for an R package"

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
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
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 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
2010 Aug 10
1
Adding Tcl source to an R package
Dear R Community, I'm writing an R package with a lot of Tcl and Tk code. I use the Tcl wrapper functions provided by the tcltk package if possible. However I also define "pure" Tcl functions. I so far defined them with the .Tcl function, for example (in R): .Tcl('proc test {a b} { return [expr {sqrt(pow($a,2)+pow($b,2))}] }') so that I can use the procedures later on
2011 Jan 03
0
Problem loading Tcl/Tk (?)
Hello, a user of one of my packages has sent me the following problem that apparently appears when loading the tcltk package. I'm guessing something (Tcl/Tk? R open scripting framework?) is not installed correctly... can someone please confirm or correct my guess? The OS is Mac 10.6.5. Thanks, Peter This is what I get: > ~ joseoter$ r > R version 2.12.0 (2010-10-15) > Copyright
2016 Mar 01
0
Database left unlocked by Tcl bindings
On Sat, 27 Feb 2016 19:39:11 +0100 (CET), Eric J <eric at deptj.eu> wrote: > On Thu, 25 Feb 2016 23:37:52 +0000, Olly Betts <olly at survex.com> wrote: 8>< -------- >> I'm testing with Tcl 8.6 (Debian package 8.6.4+dfsg-3), and it works for >> me. >> >> So it does seem it must be due to something your Tcl interpreter is >> doing, but I'm
2016 Feb 27
2
Database left unlocked by Tcl bindings
On Thu, 25 Feb 2016 23:37:52 +0000, Olly Betts <olly at survex.com> wrote: > On Thu, Feb 25, 2016 at 05:21:17PM +0100, Eric J wrote: > > On Thu, 25 Feb 2016 02:24:51 +0000, Olly Betts <olly at survex.com> wrote: > > > It's clearly not as simple as execl() always releasing the lock, but I > > > don't think we've ruled out the OS entirely yet - the
2009 Nov 30
2
Ubuntu tcl/tk problems
Error in firstlib(which.lib.loc, package) : Tcl/Tk support is not available on this system Error : package 'tcltk' could not be loaded Ubuntu 9.10 I have both the 8.5 and 8.4 tcl and tk regular and dev libraries installed. I need both of these because some of my GIS software requires the 8.4 libraries. Should I remove the 8.5 libraries, or ... All help is greatly appreciated!
2016 Feb 25
2
Database left unlocked by Tcl bindings
On Thu, 25 Feb 2016 02:24:51 +0000, Olly Betts <olly at survex.com> wrote: > On Wed, Feb 24, 2016 at 04:30:55PM +0100, Eric J wrote: >> On Wed, 24 Feb 2016 03:17:35 +0000, Olly Betts <olly at survex.com> wrote: >>>On Mon, Feb 22, 2016 at 12:26:27PM +0100, Eric wrote: >>>> % package require xapian 1.0.0 >>>> 1.2.18 >>> >>>
2016 Feb 25
0
Database left unlocked by Tcl bindings
On Thu, Feb 25, 2016 at 05:21:17PM +0100, Eric J wrote: > On Thu, 25 Feb 2016 02:24:51 +0000, Olly Betts <olly at survex.com> wrote: > > It's clearly not as simple as execl() always releasing the lock, but I > > don't think we've ruled out the OS entirely yet - the above isn't > > exactly equivalent to the Tcl code, as the two databases are created by
2006 Jun 15
1
R with tcl/tk 8.5
Hi List, Is it possible to tell R to use tcl/tk 8.5? My R package seems to depend on libtcl8.4.so. However, in Windows it seems to be possible to set TCL_LIBRARY and MY_TCLTK. Is there something similar possible in Linux? I have installed: $ rpm -q R R-2.3.1-1.fc5 $ locate libtcl8 /usr/lib/libtcl8.4.so /usr/local/lib/libtcl8.5.so
2016 Feb 24
0
Database left unlocked by Tcl bindings
Eric J <eric <at> deptj.eu> writes: > >> eric <at> bruno [ ~ ]$ tclsh > >> % info patchlevel > >> 8.6.1 > >> % package require Tcl 8 > >> 8.6.1 > >> % package require xapian 1.0.0 > >> 1.2.18 Does the problem occur with both Tcl 8.6.1 and the 8.5 series?
2016 Feb 24
4
Database left unlocked by Tcl bindings
On Wed, 24 Feb 2016 03:17:35 +0000, Olly Betts <olly at survex.com> wrote: >On Mon, Feb 22, 2016 at 12:26:27PM +0100, Eric wrote: >> On Sun, 21 Feb 2016 22:33:22 +0000, Olly Betts <olly at survex.com> wrote: >>> On Sun, Feb 21, 2016 at 02:15:25PM +0100, Eric J wrote: >>>> I discovered, while trying to set up Tcl bindings for Notmuch >>>>
2016 Feb 21
5
Database left unlocked by Tcl bindings
I discovered, while trying to set up Tcl bindings for Notmuch (https://notmuchmail.org/), which uses Xapian, that flintlock was not being locked (I had lost updates). I then found that opening a Xapian database for writing directly via the Xapian Tcl bindings also silently fails to lock flintlock. I have taken a copy of flint_lock.cc to play with, and I find that it locks the file when called
2018 Jul 06
0
Re: [PATCH nbdkit] Add Tcl plugin, for writing plugins in Tcl.
On 07/01/2018 09:59 AM, Richard W.M. Jones wrote: > This lets you write simple plugins in Tcl. All the basic features of > nbdkit are supported, but serious Tcl users will probably want to > enhance the plugin further. > > Unfortunately Tcl as a language is not very well suited to handling > binary data. It prefers to store binary data in UCS-2 strings, > meaning that every
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
2016 Feb 22
3
Database left unlocked by Tcl bindings
On Sun, 21 Feb 2016 22:33:22 +0000, Olly Betts <olly at survex.com> wrote: > On Sun, Feb 21, 2016 at 02:15:25PM +0100, Eric J wrote: > > I discovered, while trying to set up Tcl bindings for Notmuch > > (https://notmuchmail.org/), which uses Xapian, that flintlock was not > > being locked (I had lost updates). > > It seems to work for me, testing with this: >