[Rd] deparse operators in expressions

2011-04-09 Thread Yihui Xie
Hi, I observed a slight problem in deparse(): it will add spaces around most operators except /. I wonder if this is easy to fix. I know this is quite trivial, but I will appreciate if / is not treated as an exception. Examples: > deparse(expression(1/1)) [1] "expression(1/1)" > deparse(expressio

Re: [Rd] Wish there were a "strict mode" for R interpreter. What about You?

2011-04-09 Thread Spencer Graves
On 4/9/2011 6:12 PM, Duncan Murdoch wrote: On 11-04-09 7:02 PM, Spencer Graves wrote: On 4/9/2011 2:31 PM, Hadley Wickham wrote: On Sat, Apr 9, 2011 at 2:51 PM, Paul Johnson wrote: Years ago, I did lots of Perl programming. Perl will let you be lazy and write functions that refer to undefined

Re: [Rd] Wish there were a "strict mode" for R interpreter. What about You?

2011-04-09 Thread Spencer Graves
On 4/9/2011 6:12 PM, Duncan Murdoch wrote: On 11-04-09 7:02 PM, Spencer Graves wrote: On 4/9/2011 2:31 PM, Hadley Wickham wrote: On Sat, Apr 9, 2011 at 2:51 PM, Paul Johnson wrote: Years ago, I did lots of Perl programming. Perl will let you be lazy and write functions that refer to undefine

Re: [Rd] Wish there were a "strict mode" for R interpreter. What about You?

2011-04-09 Thread Duncan Murdoch
On 11-04-09 7:02 PM, Spencer Graves wrote: On 4/9/2011 2:31 PM, Hadley Wickham wrote: On Sat, Apr 9, 2011 at 2:51 PM, Paul Johnson wrote: Years ago, I did lots of Perl programming. Perl will let you be lazy and write functions that refer to undefined variables (like R does), but there is also

Re: [Rd] Wish there were a "strict mode" for R interpreter. What about You?

2011-04-09 Thread Spencer Graves
On 4/9/2011 2:31 PM, Hadley Wickham wrote: On Sat, Apr 9, 2011 at 2:51 PM, Paul Johnson wrote: Years ago, I did lots of Perl programming. Perl will let you be lazy and write functions that refer to undefined variables (like R does), but there is also a strict mode so the interpreter will block

Re: [Rd] Wish there were a "strict mode" for R interpreter. What about You?

2011-04-09 Thread Hadley Wickham
On Sat, Apr 9, 2011 at 2:51 PM, Paul Johnson wrote: > Years ago, I did lots of Perl programming. Perl will let you be lazy > and write functions that refer to undefined variables (like R does), > but there is also a strict mode so the interpreter will block anything > when a variable is mentioned

Re: [Rd] Wish there were a "strict mode" for R interpreter. What

2011-04-09 Thread Ted Harding
On 09-Apr-11 20:37:28, Duncan Murdoch wrote: > On 11-04-09 3:51 PM, Paul Johnson wrote: >> Years ago, I did lots of Perl programming. Perl will let you be lazy >> and write functions that refer to undefined variables (like R does), >> but there is also a strict mode so the interpreter will block an

Re: [Rd] Rtools questions

2011-04-09 Thread Duncan Murdoch
On 11-04-06 2:45 PM, Henrik Bengtsson wrote: On Wed, Apr 6, 2011 at 4:54 AM, Duncan Murdoch wrote: On 11-04-05 7:51 PM, Henrik Bengtsson wrote: On Tue, Apr 5, 2011 at 3:44 PM, Duncan Murdoch wrote: On 11-04-05 6:22 PM, Spencer Graves wrote: Hello: 1. How can I tell when the de

Re: [Rd] Wish there were a "strict mode" for R interpreter. What about You?

2011-04-09 Thread Duncan Murdoch
On 11-04-09 3:51 PM, Paul Johnson wrote: Years ago, I did lots of Perl programming. Perl will let you be lazy and write functions that refer to undefined variables (like R does), but there is also a strict mode so the interpreter will block anything when a variable is mentioned that has not been

[Rd] Wish there were a "strict mode" for R interpreter. What about You?

2011-04-09 Thread Paul Johnson
Years ago, I did lots of Perl programming. Perl will let you be lazy and write functions that refer to undefined variables (like R does), but there is also a strict mode so the interpreter will block anything when a variable is mentioned that has not been defined. I wish there were a strict mode fo

Re: [Rd] duplicates() function

2011-04-09 Thread Petr Savicky
On Fri, Apr 08, 2011 at 10:59:10AM -0400, Duncan Murdoch wrote: > I need a function which is similar to duplicated(), but instead of > returning TRUE/FALSE, returns indices of which element was duplicated. > That is, > > > x <- c(9,7,9,3,7) > > duplicated(x) > [1] FALSE FALSE TRUE FALSE TRUE >

[Rd] stats/arima.c memory allocation

2011-04-09 Thread Matteo Bertini
Looking at the arima.c code related to arima fitting I noticed that the code is mainly a merge of: - Gardner, G, Harvey, A. C. and Phillips, G. D. A. (1980) Algorithm AS154. An algorithm for exact maximum likelihood estimation of autoregressive-moving average models by means of Kalman filtering. A

Re: [Rd] Compression of largish expression array files in the DAAGbio/inst/doc directory?

2011-04-09 Thread John Maindonald
Thanks. That seems to work. John Maindonald email: john.maindon...@anu.edu.au phone : +61 2 (6125)3473fax : +61 2(6125)5549 Centre for Mathematics & Its Applications, Room 1194, John Dedman Mathematical Sciences Building (Building 27) Australian National University, Canberra ACT