Re: [Rd] Including a binary Python Interpreter into a binary R-package for MS Windows

2009-09-04 Thread Uwe Ligges
Guido van Steen wrote: Sorry: I sent this email to r-de...@r-project.com. So that it got bounced. Hi Uwe, Thanks a lot for this answer. Don't know Python on Windows so well, but why can't they install it? You can also install R with limited user privileges. The last time I worked with

Re: [Rd] Documentation for is.atomic and is.recursive

2009-09-04 Thread Martin Maechler
hw == hadley wickham h.wick...@gmail.com on Wed, 2 Sep 2009 14:02:06 -0500 writes: hw On Wed, Sep 2, 2009 at 1:54 PM, Stavros hw Macrakismacra...@alum.mit.edu wrote: On Wed, Sep 2, 2009 at 2:39 PM, Stavros Macrakismacra...@alum.mit.edu wrote: Most types of

[Rd] Apparent bug in summaryBy (PR#13941)

2009-09-04 Thread paterno
Full_Name: Marc Paterno Version: 2.9.2 OS: Mac OS X 10.5.8 Submission from: (NULL) (99.53.212.55) summaryBy() produces incorrect results when given some data frames. Below is a transcript of a session showing the result, in a data frame with 2 observations of 2 variables. ---

Re: [Rd] building r packages for windows on a mac/linux

2009-09-04 Thread Hin-Tak Leung
--- On Thu, 3/9/09, Vinh Nguyen vinhdi...@gmail.com wrote: hi hin-tak, i'm trying to build r packages for windows on a mac/linux. i guess this used to possible and supported, but is no longer supported. i ran into this post of yours,

Re: [Rd] building r packages for windows on a mac/linux

2009-09-04 Thread Hin-Tak Leung
--- On Thu, 3/9/09, Vinh Nguyen vinhdi...@gmail.com wrote: hmmmtried building R-2.8.0 on my mac, didn't work. i think it got the very end before failing: i386-mingw32-windres --preprocessor=i386-mingw32-gcc -E -xc -DRC_INVOKED -I /Users/vinh/Downloads/Rwin/R-2.8.0/include -I -i

[Rd] calling Lapack and BLAS routines from C

2009-09-04 Thread Marcin Hitczenko
Hi, I am working on a UNIX machine and I am interfacing R and C with the .C function. I am trying to call LAPACK and BLAS routines, but am running into a problem where, while I am able to run the BLAS routines, I cannot run the LAPACK routines. I compile my .c file (at end of email) in the

Re: [Rd] Suggestion: Allow packages to add additional information to sessionInfo()

2009-09-04 Thread Friedrich Leisch
On Thu, 3 Sep 2009 11:10:31 -0700, Henrik Bengtsson (HB) wrote: On Thu, Sep 3, 2009 at 10:38 AM, Kevin R. Coombeskrcoom...@mdacc.tmc.edu wrote: [1] I agree that sessionInfo() can be taken further. [2] I even more strongly agree that it would be a bad idea to allow packages to

Re: [Rd] calling Lapack and BLAS routines from C

2009-09-04 Thread Prof Brian Ripley
On Fri, 4 Sep 2009, Marcin Hitczenko wrote: Hi, I am working on a UNIX machine and I am interfacing R and C with the .C function. I am trying to call LAPACK and BLAS routines, but am running into a problem where, while I am able to run the BLAS routines, I cannot run the LAPACK routines. I

Re: [Rd] building r packages for windows on a mac/linux

2009-09-04 Thread Uwe Ligges
For those who have no confidential packages without license issues, want to build a Windows binary but do not have Windows available: please also note the service provided at http://win-builder.r-project.org/ Uwe Ligges Hin-Tak Leung wrote: --- On Thu, 3/9/09, Vinh Nguyen

Re: [Rd] Apparent bug in summaryBy (PR#13941)

2009-09-04 Thread Duncan Murdoch
pate...@fnal.gov wrote: Full_Name: Marc Paterno Version: 2.9.2 OS: Mac OS X 10.5.8 Submission from: (NULL) (99.53.212.55) summaryBy() produces incorrect results when given some data frames. Below is a transcript of a session showing the result, in a data frame with 2 observations of 2

[Rd] Load a package without installing it

2009-09-04 Thread Hadley Wickham
Hi all, When developing a package, it's often useful to be able to reload it, without re-installing, re-starting R and re-loading. To do this I've written a little script that inspects the package description and loads dependencies, data and code - http://gist.github.com/180883. It's obviously

Re: [Rd] Load a package without installing it

2009-09-04 Thread Romain Francois
On 09/04/2009 03:39 PM, Hadley Wickham wrote: Hi all, When developing a package, it's often useful to be able to reload it, without re-installing, re-starting R and re-loading. To do this I've written a little script that inspects the package description and loads dependencies, data and code

Re: [Rd] Load a package without installing it

2009-09-04 Thread Hadley Wickham
Nice. I would guess many of us would have versions of this, it would be good to formalise it so that it could deal with : - namespaces, you might want your unexported functions to be separate from your exported functions. It looks like your function loads everything into .GlobalEnv - S4

[Rd] Package tests must have extension .R?

2009-09-04 Thread Hadley Wickham
Is this intentional? .r is accept most other places. Hadley -- http://had.co.nz/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Rscript and default packages

2009-09-04 Thread Simon Urbanek
On Sep 3, 2009, at 13:52 , Romain Francois wrote: On 09/03/2009 05:23 PM, Duncan Murdoch wrote: On 03/09/2009 9:53 AM, Romain Francois wrote: Hi, Is is possible to embed inside an R script, the name of the default packages to be loaded when the script is invoked with Rscript. I know about

Re: [Rd] Load a package without installing it

2009-09-04 Thread Gabor Grothendieck
This is sufficiently useful that it would be nice to have it as part of R itself. For the moment, perhaps you could make a package of it on CRAN or contribute it to some other existing CRAN package. On Fri, Sep 4, 2009 at 9:39 AM, Hadley Wickhamhad...@rice.edu wrote: Hi all, When developing a

Re: [Rd] Rscript and default packages

2009-09-04 Thread Duncan Murdoch
On 9/4/2009 10:20 AM, Simon Urbanek wrote: On Sep 3, 2009, at 13:52 , Romain Francois wrote: On 09/03/2009 05:23 PM, Duncan Murdoch wrote: On 03/09/2009 9:53 AM, Romain Francois wrote: Hi, Is is possible to embed inside an R script, the name of the default packages to be loaded when the

Re: [Rd] Rscript and default packages

2009-09-04 Thread Romain Francois
On 09/04/2009 04:20 PM, Simon Urbanek wrote: On Sep 3, 2009, at 13:52 , Romain Francois wrote: On 09/03/2009 05:23 PM, Duncan Murdoch wrote: On 03/09/2009 9:53 AM, Romain Francois wrote: Hi, Is is possible to embed inside an R script, the name of the default packages to be loaded when

Re: [Rd] Suggestion: Allow packages to add additional information to sessionInfo()

2009-09-04 Thread Martin Morgan
Friedrich Leisch wrote: On Thu, 3 Sep 2009 11:10:31 -0700, Henrik Bengtsson (HB) wrote: On Thu, Sep 3, 2009 at 10:38 AM, Kevin R. Coombeskrcoom...@mdacc.tmc.edu wrote: [1] I agree that sessionInfo() can be taken further. [2] I even more strongly agree that it would be a bad

[Rd] enabling core dumps

2009-09-04 Thread pleydell
Writing R Extensions says {quotes} If you have a crash which gives a core dump you can use something like gdb /path/to/R/bin/exec/R core.12345 to examine the core dump. If core dumps are disabled... {unquotes} sadly it doesn't go on to say how to enable if core dumps are disabled. I

Re: [Rd] enabling core dumps

2009-09-04 Thread pleydell
I forgot to add that I am compiling with R CMD SHLIB buggyCode.c --ggdb thanks David Quoting pleyd...@supagro.inra.fr: Writing R Extensions says {quotes} If you have a crash which gives a core dump you can use something like gdb /path/to/R/bin/exec/R core.12345 to examine the core

Re: [Rd] enabling core dumps

2009-09-04 Thread Martin Morgan
pleyd...@supagro.inra.fr wrote: Writing R Extensions says {quotes} If you have a crash which gives a core dump you can use something like gdb /path/to/R/bin/exec/R core.12345 to examine the core dump. If core dumps are disabled... {unquotes} sadly it doesn't go on to say how to

Re: [Rd] building r packages for windows on a mac/linux

2009-09-04 Thread Vinh Nguyen
thank you professor Ligges for the build farm. i was aware of it. however, i'm just trying to learn how to build things myself. thanks to hin-tak, i did successfully cross build on R 2.8 on my mac. i will try to cross build r 2.9 next based on hin-tak's suggestions. i don't know the exact

Re: [Rd] enabling core dumps

2009-09-04 Thread pleydell
not really answering your question, but I find it more useful to R -d gdb or R -d gdb -f test.R where test.R reproduces the bug in some minimal code. A variant is R -d valgrind -f test.R if the memory problem is not easy to spot. Thanks for your reply Martin Yes, I have used that

Re: [Rd] enabling core dumps

2009-09-04 Thread pleydell
To answer my own question. My mistake was that ulimit -c unlimited applies to the current bash session only. I had used this call in a bash *shell* buffer in emacs but this was unable to affect R processes started in emacs with C-u M-x R, hence no core files. Running the buggy code from R

Re: [Rd] enabling core dumps

2009-09-04 Thread Martin Morgan
pleyd...@supagro.inra.fr wrote: not really answering your question, but I find it more useful to R -d gdb or R -d gdb -f test.R where test.R reproduces the bug in some minimal code. A variant is R -d valgrind -f test.R if the memory problem is not easy to spot. Thanks for your

Re: [Rd] enabling core dumps

2009-09-04 Thread pleydell
usually what happens is (# meant to be a comment char) % R -d gdb -f test.R gdb run ...segfault happens, breaks into gdb gdb bt # print the backtrace gdb up # move up the stack, to get to 'your' frame gdb l # show source listing, use -O0 compiler flag, see gdb help dir gdb print

Re: [Rd] enabling core dumps

2009-09-04 Thread Simon Urbanek
On Sep 4, 2009, at 12:11 , pleyd...@supagro.inra.fr wrote: not really answering your question, but I find it more useful to R -d gdb or R -d gdb -f test.R where test.R reproduces the bug in some minimal code. A variant is R -d valgrind -f test.R if the memory problem is not easy to spot.

Re: [Rd] Dependencies of packages' CHECK....

2009-09-04 Thread Allen S. Rout
On Sep 2, 2009, at 2:53 , Allen S. Rout wrote: I'm working to automate the building of RPM packages for CRAN c. In the process, I'm trying to get a sense of the correct dependencies. [...] In other words, to check properly, I need to treat Suggests and Imports as Depends. [...]

Re: [Rd] Including a binary Python Interpreter into a binary R-package for MS Windows

2009-09-04 Thread Guido van Steen
Hi Gabor, --- On Thu, 9/3/09, Gabor Grothendieck ggrothendi...@gmail.com wrote: I've tried both these approaches. See Ryacas source code to see an example of the binary download approach. It has the advantage that the software loads and runs faster. Nevertheless, I moved from the

[Rd] asking for suggestions: interface for a C++ class

2009-09-04 Thread Yurii Aulchenko
Dear All, I would like to have an advice for designing an R library, and thought that R-devel may be the best place to ask given so many people who are highly expert in R are around. We are at an early stage of designing an R library, which is effectively an interface to a C++ library

Re: [Rd] asking for suggestions: interface for a C++ class

2009-09-04 Thread Seth Falcon
* On 2009-09-04 at 22:54 +0200 Yurii Aulchenko wrote: We are at an early stage of designing an R library, which is effectively an interface to a C++ library providing fast access to large matrices stored on HDD as binary files. The core of the C++ library is relatively sophisticated class,

Re: [Rd] asking for suggestions: interface for a C++ class

2009-09-04 Thread Simon Urbanek
Yurii, On Sep 4, 2009, at 16:54 , Yurii Aulchenko wrote: Dear All, I would like to have an advice for designing an R library, and thought that R-devel may be the best place to ask given so many people who are highly expert in R are around. We are at an early stage of designing an R

[Rd] Viewing pdfs from inst/doc

2009-09-04 Thread rudjer
Writing R extensions says: In addition to the help files in Rd format, R packages allow the inclusion of documents in arbitrary other formats. The standard location for these is subdirectory inst/doc of a source package, the contents will be copied to subdirectory doc when the package is

Re: [Rd] Viewing pdfs from inst/doc

2009-09-04 Thread Barry Rowlingson
On Fri, Sep 4, 2009 at 10:44 PM, rudjerrkoen...@uiuc.edu wrote: Writing R extensions says: In addition to the help files in Rd format, R packages allow the inclusion of documents in arbitrary other formats. The standard location for these is subdirectory inst/doc of a source package, the