Re: [Rd] R vs. C now rather: how to ease package checking

2011-01-18 Thread Claudia Beleites
On 01/18/2011 01:13 AM, Dominick Samperi wrote: On Mon, Jan 17, 2011 at 7:00 PM, Spencer Graves spencer.gra...@structuremonitoring.com wrote: Hi, Dominick, et al.: Demanding complete unit test suites with all software contributed to CRAN would likely cut contributions by a factor of

Re: [Rd] R vs. C

2011-01-18 Thread Patrick Burns
I'm not at all a fan of thinking of the examples as being tests. Examples should clarify the thinking of potential users. Tests should clarify the space in which the code is correct. These two goals are generally at odds. On 17/01/2011 22:15, Spencer Graves wrote: Hi, Paul: The Writing R

Re: [Rd] R vs. C

2011-01-18 Thread Claudia Beleites
On 01/18/2011 10:53 AM, Patrick Burns wrote: I'm not at all a fan of thinking of the examples as being tests. Examples should clarify the thinking of potential users. Tests should clarify the space in which the code is correct. These two goals are generally at odds. Patrick, I completely

Re: [Rd] R vs. C

2011-01-18 Thread Patrick Burns
Claudia, I think we agree. Having the examples run in the tests is a good thing, I think. They might strengthen the tests some (especially if there are no other tests). But mainly if examples don't work, then it's hard to have much faith in the code. On 18/01/2011 11:36, Claudia Beleites

[Rd] format scientific + plotmath potential bug

2011-01-18 Thread Philip Johnson
I have run into a potential bug somewhere between format (specifically scientific notation) and plotmath that results in displaying: $1e+01^{2e+00}$ instead of $10^2$ Reproduce by: plot.new() a=format(10, scientific=TRUE) mtext(expression(10^2), line=1) #

Re: [Rd] RPostgreSQL 0.1.7 for Windows 64 causes R.2.12.1 Win64 crash

2011-01-18 Thread Xiaobo Gu
Hi Professor Brian : I buy a new 64bit Win7 Home basic notebook for working with 64bit R and PostgreSQL :) but still now I can't get postgresql-9.0.2-1-windows_x64 installed. Which version of Win 7 and postgres do you use, can you share the download URL for 9.0.0.1 of 64bit PostgreSQL, I can't

Re: [Rd] R vs. C now rather: how to ease package checking

2011-01-18 Thread Dominick Samperi
On Tue, Jan 18, 2011 at 4:48 AM, Claudia Beleites cbelei...@units.itwrote: On 01/18/2011 01:13 AM, Dominick Samperi wrote: On Mon, Jan 17, 2011 at 7:00 PM, Spencer Graves spencer.gra...@structuremonitoring.com wrote: Hi, Dominick, et al.: Demanding complete unit test suites with

Re: [Rd] format scientific + plotmath potential bug

2011-01-18 Thread Prof Brian Ripley
I already had a solution under test, so the bug is now fixed and closed. On Tue, 18 Jan 2011, Duncan Murdoch wrote: On 17/01/2011 5:06 PM, Philip Johnson wrote: I have run into a potential bug somewhere between format (specifically scientific notation) and plotmath that results in

Re: [Rd] R vs. C now rather: how to ease package checking

2011-01-18 Thread Spencer Graves
On 1/18/2011 8:44 AM, Dominick Samperi wrote: On Tue, Jan 18, 2011 at 4:48 AM, Claudia Beleitescbelei...@units.itwrote: On 01/18/2011 01:13 AM, Dominick Samperi wrote: On Mon, Jan 17, 2011 at 7:00 PM, Spencer Graves spencer.gra...@structuremonitoring.com wrote: Hi, Dominick, et al.:

Re: [Rd] R vs. C

2011-01-18 Thread David Henderson
pTests and examples are different things. The fact that your example runs only means that your code does not bomb on execution and not that it runs correctly. Plus, the code in examples is meant as an aid to the user; a way to help them understand how to use your code. Proper tests are