[R] Request for users of my R-Tcl/Tk examples, limmaGUI or affylmGUI

2006-02-02 Thread James Wettenhall
[PLEASE REPLY _OFF_ THE LIST, i.e. DON'T CC to [EMAIL PROTECTED] Hi, I don't see this sort of thing very often on the mailing lists, so list moderators and others should feel free to tell me if it breaches list etiquette and/or delete my post if necessary. But I can't see what harm it could do..

[R] Debugging R/Fortran in Windows

2005-09-08 Thread James Wettenhall
Hi, I'm trying to debug an R interface to a Fortran subroutine from Windows. (Yes, I know I should try Unix/Linux as well, but a quick attempt suggested that the (MinGW g77) Fortran compiler I have installed on my Windows laptop works better on this Fortran code.) I'm trying to follow the instru

Re: [R] Non-Linear Regression (Cobb-Douglas and C.E.S)

2004-04-18 Thread James Wettenhall
On Sun, 18 Apr 2004, Mohammad Ehsanul Karim wrote: > concern (In this case there is no way to linearize it), the Cobb-Douglas > being just a 'Toy problem' to see how non-linear process works. And i'm > sorry that i cannot guess some approximate parameter values for that CES > using some "typical

Re: [R] Non-Linear Regression (Cobb-Douglas and C.E.S)

2004-04-16 Thread James Wettenhall
Mohammed, > For estimating Cobb-Douglas production Function [ Y = ALPHA * > (L^(BETA1)) * (K^(BETA2)) ], i want to use nls function > (without linearizing it). But how can i get initial values? This might be a dumb question, but why do you need nonlinear regression for that model? It is lin

[R] Passing a pointer to .C() in Win32

2004-04-15 Thread James Wettenhall
I sent this to R-help recently, but I'm not sure if it was received correctly. It it is in: https://www.stat.math.ethz.ch/pipermail/r-help/2004-April.txt.gz but not yet in: http://tolstoy.newcastle.edu.au/R/help/04/04/index.html Apologies if I've sent it twice. On Thu, 15 Apr 2

Re: [R] Use R function in C code

2004-04-14 Thread James Wettenhall
Hi, On Fri Apr 2, xt_wang wrote: > I want to use R function Matrix inverse in my c code, please > tell me how I can. > If there is a sample which can tell me how it works. It will > be fantastic. A good place to start learning how to interface R with C is the "Writing R Extensions" manual inst

[R] Passing a pointer to .C() in Win32

2004-04-14 Thread James Wettenhall
Hi, Is there any way to pass an integer from R to C and have it cast as a pointer? # Win32 Example: library(tcltk) tt <- tktoplevel() hWndString <- tclvalue(tkwm.frame(tt)) # I'll avoid posting code to this function: source("http://bioinf.wehi.edu.au/folders/james/R/hexStringToDecimalInteger.

RE: [R] select text using only the keyboard

2003-10-23 Thread James Wettenhall
Simon, > I have a different wish: I want to be able to mouseclick in > the middle of a line to get the cursor there (as in SPlus). > > While I appreciate that to get my wish I should just write > a little patch, I estimate it would take me about 2 years > to reach the point where I was capable of

Re: [R] Installing from RPM on Red Hat 9

2003-09-19 Thread James Wettenhall
Ted, If you are missing a shared library (libtk8.3.so) then you could just find the appropriate rpm on the RedHat9 CDs, perhaps tk-8.3.5-88.i386.rpm in /RedHat/RPMS on the second CD, and install it with sudo rpm -i. BUT, there are some known bugs in the Tcl/Tk that comes with Redhat 9 (which

[R] Installing R on Red Hat Linux, Tcl/Tk

2003-09-05 Thread James Wettenhall
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

Re: [R] Tktable White column when WIDTH>13

2003-07-30 Thread James Wettenhall
Sorry to those not interested in R/TclTk for yet another email! Thomas found possibly a better way to fix the "white column on the right" problem : tkconfigure(table1,colstretchmode="unset") Also, he asked how to justify text to the left in cells, noting that justify="left" didn't work and that

Re: [R] Tktable White column when WIDTH>13

2003-07-30 Thread James Wettenhall
On Wed, 30 Jul 2003 [EMAIL PROTECTED] wrote: table1 <- tkwidget(tt,"table",variable="tclArray", rows=as.character(dim(datifram)[1]+1), cols=as.character(dim(datifram)[2]),titlerows="1", titlecols="3",selectmode="extended",height="27", width="13",bg="white",state="disabled",cursor="arrow", drawmode

Re: [R] R/Tcl arrays

2003-07-29 Thread James Wettenhall
Peter, Yes. I have a pretty limited understanding of hash-arrays in Tcl. I was amused to read "The Tcl War": http://www.vanderburg.org/Tcl/war/ Certainly your more-general array interface will be much better in the long run. What I'm trying to provide at the moment is just a few R/Tktable exam

Re: [R] Tktable change cell values

2003-07-28 Thread James Wettenhall
Thomas Sudler <[EMAIL PROTECTED]> wrote: > And my last question: How can I change the value of a cell? (I mean not by > clicking into the cell... I mean how I can change the value with a > command). Thomas, Currently there is no official interface between R arrays and Tcl arrays, so you have t

Re: [R] Tktable disable cell

2003-07-28 Thread James Wettenhall
Thomas Sudler <[EMAIL PROTECTED]> wrote: > Is it possible to "block" a cell (I mean, that you can't make an entry)? > How can I program this? And how can I deactivate a cell when the cell is > activated? (command?) Thomas, Try this. (Note that pasting in Tcl commands to set arrays is not very

Re: [R] Tktable cell colors

2003-07-28 Thread James Wettenhall
Thomas Sudler <[EMAIL PROTECTED]> wrote: > color of all the cells, that's no problem. But is it also possible to define > another color for different cells? (example: Cell at position [1,1]:red, Thomas, Try this: require(tcltk) tclRequire("Tktable") tt <- tktoplevel() table1 <- tkwidget(tt,"ta

Re: [R] Tktable active cell

2003-07-28 Thread James Wettenhall
Thomas Sudler <[EMAIL PROTECTED]> wrote: > I want to start an action when i click into a cell. Example: When I click > into a cell, a message box should open with the information of the > location of the cell where I clicked in. So I only > need to know how to get the possition of the active cel

Re: [R] Calling R from C

2003-07-22 Thread James Wettenhall
Duncan Temple Lang's article "In Search of C/C++ & Fortran Routines" in R News Vol 1/3, September 2001 is definitely worth reading (even though it's mainly about calling C from R): http://cran.r-project.org/doc/Rnews/Rnews_2001-3.pdf and you should have a look at "Writing R Extensions" : http:

[R] R_GlobalEnv

2003-05-27 Thread James Wettenhall
Hi, I'm trying to access the current R global environment from within C, using R_GlobalEnv. In the example below, Rgui (R 1.7.0. Win2K) crashes when I try to run assignValueToFooInR_GlobalEnv, but not when I run assignValueToFooInRhoEnv with Rho=.GlobalEnv. Can anyone tell me why? [ My motiv

Re: [R] R TclTk iwidgets::combobox

2003-03-26 Thread James Wettenhall
been cleaned from memory properly. Thanks very much for your help! Regards, James On 27 Mar 2003, Peter Dalgaard BSA wrote: > James Wettenhall <[EMAIL PROTECTED]> writes: > > > Hi, > > > > I am trying to create a drop-down combobox in R TclTk. > > > &g

[R] R TclTk iwidgets::comboboc

2003-03-26 Thread James Wettenhall
much to all organizers and presenters at the DSC 2003 - a huge sucess! Regards, James -- James Wettenhall Tel: (+61 3) 9345 2629 Division of Genetics and Bioinformatics Fax: (+61 3) 9347 0852 The Walter & Eliza Hall Institute E-mail: [EMAIL

[R] R tcltk modal dialog box with radio buttons

2003-02-02 Thread James Wettenhall
using R 1.6.1 in Windows 2000. Thanks in advance, James -- James Wettenhall Tel: (+61 3) 9345 2629 Division of Genetics and Bioinformatics Fax: (+61 3) 9347 0852 The Walter & E