Re: [Rd] is it necessary to always register C routines with R_registerRoutines?

2007-01-24 Thread Vladimir Eremeev
sorry, forgot to mention. krui_getVersion returns char * SEXP snns_getVersion(void) {SEXP version; char *v; PROTECT(version=NEW_CHARACTER(15)); v=CHARACTER_POINTER(version); strcpy(v,krui_getVersion()); UNPROTECT(1); return version; } -- View this message in context: http://www

[Rd] is it necessary to always register C routines with R_registerRoutines?

2007-01-24 Thread Vladimir Eremeev
I am writing bindings to the neural network simulator SNNS. At present I have used only .C interface, now I'm studying .Call interface. I have adapted the example from page 77 of r-exts.pdf, however, it crashes R. I use MingW as recommended by Duncan Murdoch. Please, tell me what I am missing. Th

Re: [Rd] is it necessary to always register C routines with R_registerRoutines?

2007-01-24 Thread Brian Ripley
No, in answer to the subject line. On Tue, 23 Jan 2007, Vladimir Eremeev wrote: > I am writing bindings to the neural network simulator SNNS. > At present I have used only .C interface, now I'm studying .Call interface. > > I have adapted the example from page 77 of r-exts.pdf, however, it crashe

Re: [Rd] is it necessary to always register C routines with R_registerRoutines?

2007-01-24 Thread Peter Dalgaard
Brian Ripley wrote: > No, in answer to the subject line. > > On Tue, 23 Jan 2007, Vladimir Eremeev wrote: > > >> I am writing bindings to the neural network simulator SNNS. >> At present I have used only .C interface, now I'm studying .Call interface. >> >> I have adapted the example from page 7

[Rd] Matrix subsetting {was "... vectorized nested loop..."}

2007-01-24 Thread Martin Maechler
Hi Jose, I'm answering your second batch of questions, since Chuck Berry has already well done so with the first one > "Jose" == Jose Quesada <[EMAIL PROTECTED]> > on Tue, 23 Jan 2007 21:46:27 +0100 writes: [] Jose> # example Jose> library(Matrix) Jose> x = as(x,"

[Rd] Useful statusbar in RGui

2007-01-24 Thread talepanda
This may be Windows specific, so not appropriate for this List... Currently, when I'm in console of Rgui, the status bar says a simple message "R majer ver. minor ver. - A Language and Environment" which I know. When I'm in plot area, it says "R Graphics" which I know, again. I think it is very

[Rd] how to properly extend s3 data.frames with s4 classes?

2007-01-24 Thread Ulf Martin
Dear R Programmers! After some time of using R I decided to work through John Chambers book "Programming with Data" to learn what these S4 classes are all about and how they work in R. (I regret not having picked up this rather fine book earlier!) I know from the documentation and the mailing

Re: [Rd] Useful statusbar in RGui

2007-01-24 Thread Prof Brian Ripley
On Wed, 24 Jan 2007, talepanda wrote: > This may be Windows specific, so not appropriate for this List... > > Currently, when I'm in console of Rgui, the status bar says a simple message > "R majer ver. minor ver. - A Language and Environment" which I know. > When I'm in plot area, it says "R Grap

Re: [Rd] Useful statusbar in RGui

2007-01-24 Thread talepanda
Dear Prof Ripley, thank you for your suggestion. > > I think it is very useful if statusbars says current directory, > > because in my daily use I open several Rgui windows in different > > directory (that is, different project), and it is diffecult to find > > the window which I want. > > It is n

[Rd] how to trace what crashes R

2007-01-24 Thread Vladimir Eremeev
I am writing bindings to the C library (neural network simulator SNNS). DLL was produced with the command R CMD SHLIB [source with C-wrappers, callable from R with .C and all sources from the snns kernel] I used latest MinGW. The problem is. R crashes with the "segmentation violation". Tracing w

Re: [Rd] how to trace what crashes R

2007-01-24 Thread Dirk Eddelbuettel
On Wed, Jan 24, 2007 at 11:15:49AM -0800, Vladimir Eremeev wrote: > The problem is. R crashes with the "segmentation violation". > Tracing with the insight and with simple Rprintf's gave me that crash occurs > on the call of the function deeply in the snns kernel. > That is, R correctly calls C wr

Re: [Rd] how to trace what crashes R

2007-01-24 Thread Duncan Murdoch
On 1/24/2007 2:47 PM, Dirk Eddelbuettel wrote: > On Wed, Jan 24, 2007 at 11:15:49AM -0800, Vladimir Eremeev wrote: >> The problem is. R crashes with the "segmentation violation". >> Tracing with the insight and with simple Rprintf's gave me that crash occurs >> on the call of the function deeply in

[Rd] Error in loadNamespace(name) (PR#9464)

2007-01-24 Thread r . darnell
Full_Name: Ross Darnell Version: 2.4.1 OS: Linux Submission from: (NULL) (130.102.133.33) [EMAIL PROTECTED]:~/Data$ ls -al .RData -rwxrwxrwx 2 root root 13551 2006-12-06 08:58 .RData [EMAIL PROTECTED]:~/Data$ R R version 2.4.1 (2006-12-18) Copyright (C) 2006 The R Foundation for Statistical Comp

Re: [Rd] Error in loadNamespace(name) (PR#9464)

2007-01-24 Thread ripley
There is nothing here to reproduce. It clearly depends on your .RData, which is not available to us. Unless you can make it available, we cannot help. On Thu, 25 Jan 2007, [EMAIL PROTECTED] wrote: > Full_Name: Ross Darnell > Version: 2.4.1 > OS: Linux > Submission from: (NULL) (130.102.133.33) >