[Rd] qbinom (PR#13711)

2009-05-21 Thread wolfgang . resch
Full_Name: Wolfgang Resch Version: R 2.8.1 GUI 1.27 OS: OS X 10.4.11 Submission from: (NULL) (137.187.89.14) Strange behavior of qbinom: qbinom(0.01, 5016279, 1e-07) [1] 0 qbinom(0.01, 5016279, 2e-07) [1] 16 qbinom(0.01, 5016279, 3e-07) [1] 16 qbinom(0.01, 5016279, 4e-07) [1] 16

Re: [Rd] qbinom (PR#13711)

2009-05-21 Thread Peter Dalgaard
wolfgang.re...@gmail.com wrote: Full_Name: Wolfgang Resch Version: R 2.8.1 GUI 1.27 OS: OS X 10.4.11 Submission from: (NULL) (137.187.89.14) Strange behavior of qbinom: qbinom(0.01, 5016279, 1e-07) [1] 0 qbinom(0.01, 5016279, 2e-07) [1] 16 qbinom(0.01, 5016279, 3e-07) [1] 16

Re: [Rd] Colour Schemes

2009-05-21 Thread Richard . Cotton
I've been thinking hard about generating colour schemes for data. There's quite a bit of existing code scattered in various packages for playing with colours and colour palettes, but I can't find the sort of thing I'm after for applying colours to data... To my mind a colour scheme is a

Re: [Rd] Auto-upgrading a package under Windows ?

2009-05-21 Thread Dirk Eddelbuettel
On 21 May 2009 at 07:11, Prof Brian Ripley wrote: | You would need not to use UseDynLib in the NAMESPACE, but load the DLL | in the .onLoad via library.dynam. Martin Morgan had suggested the same in private mail, and that is indeed the solution: do not load the dynamic library via NAMESPACE,

Re: [Rd] Colour Schemes

2009-05-21 Thread Barry Rowlingson
On Thu, May 21, 2009 at 2:18 PM, richard.cot...@hsl.gov.uk wrote: Most of the plots where colour is typically used to signify a variable already do map colours to data values.  Take a look at help pages for levelplot/contourplot/wireframe from the lattice package, and image from base

Re: [Rd] Colour Schemes

2009-05-21 Thread Richard . Cotton
I'm going to take your second example first. The base graphics image function has zlim arguments which let you do: z=outer(1:10,1:10,*) image(z) image(z/2, zlim=range(z)) but again, not obvious, and complex/impossible when using more sophisticated colour mappings. The way to do

[Rd] file descriptor leak in getSrcLines in R 2.10.0 svn 48590

2009-05-21 Thread William Dunlap
I noticed the following file descriptor leak when I couldn't remove a package unless I shut down the R session that had loaded and used it. The function that triggered the problem printed the output of a call to parse(). Each time one prints a srcref a connection is opened and not closed. It

Re: [Rd] Colour Schemes

2009-05-21 Thread hadley wickham
 Yes, but these things are all at the wrong conceptual level. What you are constructing here is a function that maps value to colour, but keeping it as breaks and cut values and colours instead of representing it as a function. Wouldn't it be nicer to build a real function object and have

Re: [Rd] Colour Schemes

2009-05-21 Thread Deepayan Sarkar
On Thu, May 21, 2009 at 10:53 AM, Barry Rowlingson b.rowling...@lancaster.ac.uk wrote: On Thu, May 21, 2009 at 5:29 PM, Deepayan Sarkar deepayan.sar...@gmail.com wrote: [oops I didnt reply-to-all] But you could specify an explicit 'at' vector specifying the color breakpoints: effectively,

Re: [Rd] install.packages now intentionally references .Rprofile?

2009-05-21 Thread Mark Kimpel
This was my original post, with the code example only slightly modified by Martin for clarity. Prior to R-2.9.0, this repeated downloading did not occur, the code worked as intended. In fact, if memory serves me correctly, it even worked at least during the first 3 months of R-2.0.0 in its

[Rd] Trivial typo in sample help file

2009-05-21 Thread Fernando Mayer
Hi, just found a small typo in help(sample). In 'Arguments' section, where says n: a non-negaiive integer, the number of items to choose from. should be n: a non-negative integer, the number of items to choose from. I didn't filled a bug report because this is very trivial.

[Rd] Trivial typo in sample help file

2009-05-21 Thread Fernando Mayer
[Sorry, forget the version below...] Hi, just found a small typo in help(sample). In 'Arguments' section, where says n: a non-negaiive integer, the number of items to choose from. should be n: a non-negative integer, the number of items to choose from. I didn't filled a bug