Re: [Rd] C/C++ 'assert' should not be used in R packages

2007-11-10 Thread Simon Urbanek
On Nov 10, 2007, at 5:38 PM, Duncan Murdoch wrote: > On 10/11/2007 4:27 PM, Simon Urbanek wrote: >> On Nov 10, 2007, at 1:05 PM, Duncan Murdoch wrote: >>> On 10/11/2007 1:00 PM, Duncan Temple Lang wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Duncan Murdoch wr

Re: [Rd] C/C++ 'assert' should not be used in R packages

2007-11-10 Thread Duncan Murdoch
Bill Dunlap wrote: > On Sat, 10 Nov 2007, Duncan Murdoch wrote: > > >> Prof Brian Ripley wrote: >> >>> Please don't use 'assert' in R packages. If called, this means that an >>> error in your code aborts the whole R process, including your user's work. >>> I see several R packages doing th

Re: [Rd] C/C++ 'assert' should not be used in R packages

2007-11-10 Thread Bill Dunlap
On Sat, 10 Nov 2007, Duncan Murdoch wrote: > Prof Brian Ripley wrote: > > Please don't use 'assert' in R packages. If called, this means that an > > error in your code aborts the whole R process, including your user's work. > > I see several R packages doing this, and one of them called 'assert'

Re: [Rd] C/C++ 'assert' should not be used in R packages

2007-11-10 Thread Duncan Murdoch
On 10/11/2007 4:27 PM, Simon Urbanek wrote: > On Nov 10, 2007, at 1:05 PM, Duncan Murdoch wrote: > >> On 10/11/2007 1:00 PM, Duncan Temple Lang wrote: >>> -BEGIN PGP SIGNED MESSAGE- >>> Hash: SHA1 >>> >>> >>> >>> Duncan Murdoch wrote: Prof Brian Ripley wrote: > Please don't use 'a

Re: [Rd] C/C++ 'assert' should not be used in R packages

2007-11-10 Thread Simon Urbanek
On Nov 10, 2007, at 1:05 PM, Duncan Murdoch wrote: > On 10/11/2007 1:00 PM, Duncan Temple Lang wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> >> >> Duncan Murdoch wrote: >>> Prof Brian Ripley wrote: Please don't use 'assert' in R packages. If called, this means that

Re: [Rd] C/C++ 'assert' should not be used in R packages

2007-11-10 Thread Duncan Temple Lang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Duncan Murdoch wrote: > On 10/11/2007 1:00 PM, Duncan Temple Lang wrote: > > > Duncan Murdoch wrote: Prof Brian Ripley wrote: > Please don't use 'assert' in R packages. If called, this means that > an error in your code aborts the who

Re: [Rd] C/C++ 'assert' should not be used in R packages

2007-11-10 Thread Duncan Murdoch
On 10/11/2007 1:00 PM, Duncan Temple Lang wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > > Duncan Murdoch wrote: >> Prof Brian Ripley wrote: >>> Please don't use 'assert' in R packages. If called, this means that an >>> error in your code aborts the whole R process, including y

Re: [Rd] C/C++ 'assert' should not be used in R packages

2007-11-10 Thread Duncan Temple Lang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Duncan Murdoch wrote: > Prof Brian Ripley wrote: >> Please don't use 'assert' in R packages. If called, this means that an >> error in your code aborts the whole R process, including your user's work. >> I see several R packages doing this, and on

Re: [Rd] C/C++ 'assert' should not be used in R packages

2007-11-10 Thread Duncan Murdoch
On 10/11/2007 6:38 AM, Duncan Murdoch wrote: > Prof Brian Ripley wrote: >> Please don't use 'assert' in R packages. If called, this means that an >> error in your code aborts the whole R process, including your user's work. >> I see several R packages doing this, and one of them called 'assert'

Re: [Rd] years() in chron package not working in R 2.6.0 (PR#10415)

2007-11-10 Thread Gabor Grothendieck
In chron, ?year says x must be a "dates" object and its not in the code below. On Nov 9, 2007 3:55 PM, <[EMAIL PROTECTED]> wrote: > I loaded package chron in a newly installed version of R 2.6.0 and the > years() function would not work. (This worked in 2.5). > > =20 > > > x<-as.Date("2006-01-01

Re: [Rd] C/C++ 'assert' should not be used in R packages

2007-11-10 Thread Duncan Murdoch
Prof Brian Ripley wrote: > Please don't use 'assert' in R packages. If called, this means that an > error in your code aborts the whole R process, including your user's work. > I see several R packages doing this, and one of them called 'assert' on me > earlier in the week. > I partly disagr

[Rd] years() in chron package not working in R 2.6.0 (PR#10415)

2007-11-10 Thread jputz
I loaded package chron in a newly installed version of R 2.6.0 and the years() function would not work. (This worked in 2.5). =20 > x<-as.Date("2006-01-01") > years(x) NULL =20 >sessionInfo() R version 2.6.0 (2007-10-03)=20 i386-pc-mingw32=20 =20 locale: LC_COLLATE=3DEnglish_United Stat

[Rd] C/C++ 'assert' should not be used in R packages

2007-11-10 Thread Prof Brian Ripley
Please don't use 'assert' in R packages. If called, this means that an error in your code aborts the whole R process, including your user's work. I see several R packages doing this, and one of them called 'assert' on me earlier in the week. We provide 'error': please do use it to return contr