Re: [Rd] RFC: "loop connections"

2005-08-26 Thread dhinds
Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > OK. I guess you want one of the core people to respond but in the > interim can you explain the terminology "loop"? > Also, do you have any prototypical applications in mind? "loop" is short for "loopback". A loop or loopback device is one that

[Rd] .Call and Segmentation Fault

2005-08-26 Thread Ricardo Luiz Andrade Abrantes
Hello to everyone! I use .Call to call a C function without arguments wich calls a fortran optimization package. My C function uses others C and Fortran functions and it works fine when I call it from a main() in a C program. But when I call it from R with .Call("name_of_the_c_function"), R gives m

[Rd] wchar and wstring.

2005-08-26 Thread James Bullard
Hello all, I am writing an R interface to some C++ files which make use of std::wstring classes for internationalization. Previously (when I wanted to make R strings from C++ std::strings), I would do something like this to construct a string in R from the results of the parse. SET_VECTOR_ELT(vals

Re: [Rd] .Call and Segmentation Fault

2005-08-26 Thread Byron Ellis
Are you returning a SEXP? .Call (unlike .C) expects a SEXP return value. It sounds like you're returning garbage and R is choking on that when it tries to use the address as a SEXP. On Aug 26, 2005, at 3:19 PM, Ricardo Luiz Andrade Abrantes wrote: > Hello to everyone! > I use .Call to call a

[Rd] .Call and Segmentation Fault

2005-08-26 Thread Ricardo Luiz Andrade Abrantes
Hello to everyone! I use .Call to call a C function without arguments wich calls a fortran optimization package. My C function uses others C and Fortran functions and it works fine when I call it from a main() in a C program. But when I call it from R with .Call("name_of_the_c_function"), R gives m

Re: [Rd] RFC: "loop connections"

2005-08-26 Thread Gabor Grothendieck
OK. I guess you want one of the core people to respond but in the interim can you explain the terminology "loop"? Also, do you have any prototypical applications in mind? On 8/26/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I accidentally left one small change out of my previous patch. >

Re: [Rd] RFC: "loop connections"

2005-08-26 Thread dhinds
I accidentally left one small change out of my previous patch. So... no response to my request for comments. Does that mean no one has an opinion about whether this is a good idea or not? I'd appreciate a response from an R core member one way or the other; if this is not the right way to get a

Re: [Rd] Memory leakage/violation?

2005-08-26 Thread Thomas Lumley
I can't reproduce this on R2.2.0dev on Windows XP (in a few hundred tries), or running under Valgrind on AMD64 Linux (in four or five tries). -thomas On Fri, 26 Aug 2005, Henrik Bengtsson wrote: > Hi, > > I've spotted a possible memory leakage/violation in the latest R v2.1.1 > patche

Re: [Rd] Free-form to fixed-form Fortran

2005-08-26 Thread Simon Urbanek
Aleši, On Aug 26, 2005, at 10:36 AM, Aleš Žiberna wrote: > I have writen some subrutines in Free-form Fortran. I would like to > includ > them in a package, which I would like to build on WinXP. I have all > suggested tools/programs for bulding R packages on Windows (except > latex). > > What

Re: [Rd] Free-form to fixed-form Fortran

2005-08-26 Thread Don MacQueen
Not knowing exactly what you mean by Free-form Fortran I couldn't say for sure, but perhaps ratfor will do the job. Worth trying, I would think. -Don At 4:36 PM +0200 8/26/05, =?iso-8859-2?Q?Ale=B9_=AEiberna?= wrote: >Hello! > >I have writen some subrutines in Free-form Fortran. I would like to

[Rd] Memory leakage/violation?

2005-08-26 Thread Henrik Bengtsson
Hi, I've spotted a possible memory leakage/violation in the latest R v2.1.1 patched and R v2.2.0dev on Windows XP Pro SP2 Eng. I first caught it deep down in a nested svd algorithm when subtracting a double 'c' from a integer vector 'a' where both had finite values but when assigning 'a <- a -

Re: [Rd] Functions with the same name: best practices

2005-08-26 Thread Prof Brian Ripley
On Fri, 26 Aug 2005, hadley wickham wrote: > Thanks to all of you for your advice. I will read up on namespaces and > start using them to "protect" my internal function from name clashes > with other packages, and endeavour to my public functions unique > names. > > I know other languages (eg. pyt

Re: [Rd] Functions with the same name: best practices

2005-08-26 Thread hadley wickham
Thanks to all of you for your advice. I will read up on namespaces and start using them to "protect" my internal function from name clashes with other packages, and endeavour to my public functions unique names. I know other languages (eg. python) separate loading a package and including it in the

[Rd] Free-form to fixed-form Fortran

2005-08-26 Thread Aleš Žiberna
Hello! I have writen some subrutines in Free-form Fortran. I would like to includ them in a package, which I would like to build on WinXP. I have all suggested tools/programs for bulding R packages on Windows (except latex). What is the best way of using these subrutines? Does sombody mybe know

Re: [Rd] Fortran (Was: Re: [R] linux compile options (64-bit))

2005-08-26 Thread Prof Brian Ripley
On Fri, 26 Aug 2005, Göran Broström wrote: On Tue, Aug 02, 2005 at 12:12:08PM +0200, Göran Broström wrote: On Tue, Aug 02, 2005 at 10:58:31AM +0100, Prof Brian Ripley wrote: The problems we are seeing with gcc4 are mainly (but not entirely) with gfortran: it seems not quite ready for producti

[Rd] Fortran (Was: Re: [R] linux compile options (64-bit))

2005-08-26 Thread Göran Broström
On Tue, Aug 02, 2005 at 12:12:08PM +0200, Göran Broström wrote: > On Tue, Aug 02, 2005 at 10:58:31AM +0100, Prof Brian Ripley wrote: > > > The problems we are seeing with gcc4 are mainly (but not > > entirely) with gfortran: it seems not quite ready for production use. > > -4.0.1 is already a con

Re: [Rd] histogram method for S4 class.

2005-08-26 Thread Martin Maechler
> "Ernesto" == Ernesto Jardim <[EMAIL PROTECTED]> > on Fri, 26 Aug 2005 10:15:01 +0100 writes: Ernesto> Deepayan Sarkar wrote: >> [I'm CC-ing to r-devel, please post follow-ups there] >> . >> Deepayan Ernesto> ... Ernesto> ps: I'm not a

Re: [Rd] histogram method for S4 class.

2005-08-26 Thread Ernesto Jardim
Deepayan Sarkar wrote: >On 8/24/05, ernesto <[EMAIL PROTECTED]> wrote: > > >>Hi, >> >>I'm trying to develop an histogram method for a class called "FLQuant" >>which is used by the package FLCore (http://flr-project.org). FLQuant is >>an extension to "array". There is an as.data.frame method that