Re: [Rd] Use keep.source for function in package with lazy loading

2011-04-10 Thread Prof Brian Ripley
R-devel now has a KeepSource DESCRIPTION field to accomplish what I think you are seeking. On Tue, 5 Apr 2011, Greg Snow wrote: Prof. Ripley, Thanks for the explanation. I had set both keep.source and keep.source.packages to TRUE for my experiments, but had not realized that a new R

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

2011-04-10 Thread Duncan Murdoch
On 11-04-09 9:22 PM, Spencer Graves wrote: 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 Johnsonpauljoh...@gmail.com wrote: Years ago, I did lots of Perl programming. Perl

Re: [Rd] deparse operators in expressions

2011-04-10 Thread Duncan Murdoch
On 11-04-09 9:43 PM, Yihui Xie wrote: 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: It's easy to change: take

Re: [Rd] Rtools questions

2011-04-10 Thread Gabor Grothendieck
On Sat, Apr 9, 2011 at 4:40 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 11-04-06 2:45 PM, Henrik Bengtsson wrote: On Wed, Apr 6, 2011 at 4:54 AM, Duncan Murdochmurdoch.dun...@gmail.com  wrote: On 11-04-05 7:51 PM, Henrik Bengtsson wrote: On Tue, Apr 5, 2011 at 3:44 PM, Duncan

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

2011-04-10 Thread Spencer Graves
On 4/10/2011 6:10 AM, Duncan Murdoch wrote: On 11-04-09 9:22 PM, Spencer Graves wrote: 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 Johnsonpauljoh...@gmail.com wrote:

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

2011-04-10 Thread peter dalgaard
On Apr 10, 2011, at 15:10 , Duncan Murdoch wrote: On 11-04-09 9:22 PM, Spencer Graves wrote: On 4/9/2011 6:12 PM, Duncan Murdoch wrote: On 11-04-09 7:02 PM, Spencer Graves wrote: R CMD check will give this message sometimes when I don't feel it's appropriate. For example, I

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

2011-04-10 Thread Hadley Wickham
Okay, I understand what you are trying to do.  Yes, you have fooled codetools in this instance. ...but notice that the codetools warning is just that: It _is_ acknowledged that these things occasionally happen by design. There are a couple of cases in base R too: * checking R code for

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

2011-04-10 Thread luke-tierney
On Sun, 10 Apr 2011, Hadley Wickham wrote: Okay, I understand what you are trying to do.  Yes, you have fooled codetools in this instance. ...but notice that the codetools warning is just that: It _is_ acknowledged that these things occasionally happen by design. There are a couple of cases

Re: [Rd] deparse operators in expressions

2011-04-10 Thread Yihui Xie
Thanks for pointing out the direction. Since this is unlikely to change in base R, is it possible to change from an add-on package? I think it is reasonable to eliminate spaces around ^ and :, but I don't understand why /, %% and %/% should be different with other arithmetic operators like +, -

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

2011-04-10 Thread peter dalgaard
On Apr 10, 2011, at 19:54 , luke-tier...@uiowa.edu wrote: On Sun, 10 Apr 2011, Hadley Wickham wrote: Okay, I understand what you are trying to do. Yes, you have fooled codetools in this instance. ...but notice that the codetools warning is just that: It _is_ acknowledged that these

Re: [Rd] deparse operators in expressions

2011-04-10 Thread Duncan Murdoch
On 10/04/2011 2:08 PM, Yihui Xie wrote: Thanks for pointing out the direction. Since this is unlikely to change in base R, is it possible to change from an add-on package? Of course. Just write your own deparse function. You can start with the code from the standard one, and make any

Re: [Rd] question about assignment warnings for replacement methods

2011-04-10 Thread Hervé Pagès
Hi Simon, On 11-04-08 01:05 PM, Simon Urbanek wrote: On Apr 8, 2011, at 2:55 PM, Hervé Pagès wrote: Hi Duncan, Marc, On 11-04-05 11:15 AM, Duncan Murdoch wrote: On 05/04/2011 1:51 PM, Marc Carlson wrote: Hi, I have seen several packages that with the most recent version of R are giving a

Re: [Rd] R CMD build now removes empty dirs

2011-04-10 Thread Hervé Pagès
Hi Henrik, Just to clarify, you still have the ability of installing directory structures that are partly empty. Actually 'R CMD INSTALL pkgpath/' does this. And if srctarball.tar.gz contains empty dirs, 'R CMD INSTALL srctarball.tar.gz' will also keep them. The problem is that *by default* 'R

[Rd] R CMD build --resave-data

2011-04-10 Thread Hervé Pagès
Hi, More about the new --resave-data option As mentioned previously here https://stat.ethz.ch/pipermail/r-devel/2011-April/060511.html 'R CMD build' and 'R CMD INSTALL' handle this new option inconsistently. The former does --resave-data=gzip by default. The latter doesn't seem to support