Re: [Rd] Viewing pdfs from inst/doc

2009-09-04 Thread Romain Francois
On 09/04/2009 11:58 PM, Barry Rowlingson wrote: On Fri, Sep 4, 2009 at 10:44 PM, rudjer 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/d

Re: [Rd] Viewing pdfs from inst/doc

2009-09-04 Thread Barry Rowlingson
On Fri, Sep 4, 2009 at 10:44 PM, rudjer 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 contents will b

[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 instal

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 libra

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 clas

[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 pro

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 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 binary download appr

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 Dep

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] 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 some

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 s

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 start

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 route

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 reaso

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 t

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

[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 und

Re: [Rd] Rscript and default packages

2009-09-04 Thread Simon Urbanek
On Sep 4, 2009, at 10:20 , 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. > > Coombes wrote: > >> [1] I agree that sessionInfo() can be taken further. > >> [2] I even more strongly agree that it would be a bad idea

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 the

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 scr

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 Wickham wrote: > Hi all, > > When developing a package, it'

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

[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] 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

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 -

[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 no

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 variable

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

2009-09-04 Thread Guido van Steen
--- On Fri, 9/4/09, Uwe Ligges wrote: > MinGW doesn't need to be in the package, because you do not > want to ship the binaries. I meant that I would have to include the source code of MinGW, in order to build the MinGW compiler in some writeable directory of the R-user's computer. This is bec

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 wrote: hmmm

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 com

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. > Coombes 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 add feat

[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 follow

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 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 > methods_res

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 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, > https://stat.ethz.ch/pipermail/r-devel/2009-July/053971.html, >

[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. --- tho

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

2009-09-04 Thread Martin Maechler
> "hw" == hadley wickham > on Wed, 2 Sep 2009 14:02:06 -0500 writes: hw> On Wed, Sep 2, 2009 at 1:54 PM, Stavros hw> Macrakis wrote: >> On Wed, Sep 2, 2009 at 2:39 PM, Stavros >> Macrakis wrote: >> >>> Most types of language objects are regarded as >>

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 P