Re: [Rd] PROTECT and OCaml GC.

2009-12-01 Thread Guillaume Yziquel
Simon Urbanek a écrit : On Nov 30, 2009, at 16:07 , Guillaume Yziquel wrote: Simon Urbanek a écrit : And it goes then to my other question: How can you pass to eval a LANGSXP where the CAR is an *anonymous* function, no SYMSXP involved? You just pass it as value of the call. I suspect the r

Re: [Rd] Bug in R evaluating a huge instruction (PR#14096)

2009-12-01 Thread Jean Couteau
Thanks for your time Duncan, I join here the instruction that is not correct, hoping that might help you. The file is encoded in utf-8 so you should not have any problem reading it. I doubt to that it is an R bug too, but with all my tests i am less and less sure of that. Best regards, Jea

Re: [Rd] raster support in graphics devices

2009-12-01 Thread Martin Maechler
> "CM" == Charlotte Maia > on Tue, 1 Dec 2009 17:48:33 +1300 writes: CM> Hi, CM> I consider raster graphics highly problematic in statistics. CM> People get caught up in the idea of creating pretty pictures, rather CM> than effectively visualising information. CM>

Re: [Rd] Bug in R evaluating a huge instruction (PR#14096)

2009-12-01 Thread Romain Francois
Hello, Since we don't have the morris function, I have tested using this one: > morris <- function(...) lapply(list(...), str ) If I just copy and paste into the console, R waits for more input, but if I parse the file, it is fine: > eval( parse( "morrisError.R" ) ) NULL chr [1:86] "Peche

Re: [Rd] PROTECT and OCaml GC.

2009-12-01 Thread Guillaume Yziquel
Guillaume Yziquel a écrit : One last thing, concerning the use of promises. If I do install, findVar, without forcing the resulting promise, and then construct the call, I get a failure: # R.eval_langsxp (R.langsxp_of_list [(R.symbol "str"); (R.symbol "lm")] 2);; Erreur dans function (objec

Re: [Rd] PROTECT and OCaml GC.

2009-12-01 Thread Guillaume Yziquel
Guillaume Yziquel a écrit : Guillaume Yziquel a écrit : One last thing, concerning the use of promises. If I do install, findVar, without forcing the resulting promise, and then construct the call, I get a failure: Replacing findfun by findvar works in this specific case. See below. Could

Re: [Rd] raster support in graphics devices

2009-12-01 Thread Simon Urbanek
Charlotte, On Nov 30, 2009, at 23:48 , Charlotte Maia wrote: I consider raster graphics highly problematic in statistics. People get caught up in the idea of creating pretty pictures, rather than effectively visualising information. Plus a lot of people (who should know better) needlessly put

Re: [Rd] Bug in R evaluating a huge instruction (PR#14096)

2009-12-01 Thread Duncan Murdoch
On 01/12/2009 12:50 AM, Jean Couteau wrote: Thanks for your time Duncan, I join here the instruction that is not correct, hoping that might help you. The file is encoded in utf-8 so you should not have any problem reading it. I doubt to that it is an R bug too, but with all my tests i am les

Re: [Rd] [R] How to quit unwanted execution immediately?

2009-12-01 Thread Peng Yu
The delay that I observe is when I type ctrl+C after I str() a long list. Since str() comes from the core R installation, maybe it should be improved? > R can or cannot response immediately depending on the underlying C sources. > If the underlying source code is written carefully enough, there ar

Re: [Rd] p-generalized normal distribution

2009-12-01 Thread Steve Kalke
Ben Bolker schrieb: Steve Kalke uni-rostock.de> writes: I would like to know if there is an R-package available for computing the density, distribution function, quantiles and random numbers of the p-generalized normal distribution or if somebody is already working on it. I haven

Re: [Rd] raster support in graphics devices

2009-12-01 Thread baptiste auguie
Very nice, thank you for this great addition to R graphics! I can't wait to see lattice and ggplot2 functions that use rasterGrob to display images. The pdf output is so much better in every way! Incidentally, I ran into a segfault with grid.cap on the quartz device, but maybe it's normal at this

[Rd] barplot: auto sizing for ylim variable

2009-12-01 Thread violet lock
Dear R-Devel, I am trying to create a barplot for a large dataset (about 1500 entries) and was wondering if there was away to do auto sizing for the y-axis of a horizontal bar plot such that the data displays in a readable format and can be scrolled or paged through? I know I could use a control

Re: [Rd] raster support in graphics devices

2009-12-01 Thread Paul Murrell
Hi baptiste auguie wrote: Very nice, thank you for this great addition to R graphics! I can't wait to see lattice and ggplot2 functions that use rasterGrob to display images. The pdf output is so much better in every way! Incidentally, I ran into a segfault with grid.cap on the quartz device,

Re: [Rd] raster support in graphics devices

2009-12-01 Thread Charlotte Maia
On 12/2/09, Simon Urbanek wrote: > Charlotte, > > > I would like to point out that implicitly you have been already using raster > graphics all the time in very inefficient form in heatmaps etc. The point > here is not really about added functionality for the user but efficiency, > because now we

Re: [Rd] PROTECT and OCaml GC.

2009-12-01 Thread Guillaume Yziquel
Simon Urbanek a écrit : You just pass it as value of the call. I suspect the reason it doesn't work is in your code, not in the facility (note that the link above is useless since the construction is mystery - if you were constructing it right, it would work ;)). Small example: SEXP myEval

Re: [Rd] PROTECT and OCaml GC.

2009-12-01 Thread Simon Urbanek
On Dec 1, 2009, at 8:32 PM, Guillaume Yziquel wrote: > Simon Urbanek a écrit : >> You just pass it as value of the call. I suspect the reason it doesn't work >> is in your code, not in the facility (note that the link above is useless >> since the construction is mystery - if you were construct

Re: [Rd] PROTECT and OCaml GC.

2009-12-01 Thread Guillaume Yziquel
Simon Urbanek a écrit : No, because you cannot use CHARSXP as a TAG. TAGs are always symbols. Therefore, logically, you must register it first in (or obtain from) the symbol table using install. OK. That's R side. OCaml side, I need to have as little side-effects as possible. Symbol assign

[Rd] re: documentation omission in Extract.Rd?

2009-12-01 Thread Charlotte Maia
Hi Tony, I don't know the answer to your question. The base package in R is constantly full of pleasant surprises. However I would image that the Rd files you have mentioned are sufficient examples of how to write documentation for extraction and replacement functions. kind regards -- Charlott