Re: [Rd] ignorant question about Roxy- mode in ESS

2012-01-31 Thread Ben Bolker
Ben Bolker gmail.com> writes: > I am slowly getting up to speed/being dragged into using Roxygen in a > project. I'm wondering if there's a way to emulate the behaviour of C-c > C-p (Rd-preview-help) in Rd-mode (create a preview in a new Emacs buffer > in "R Help Preview" mode), but from an Rox

[Rd] ignorant question about Roxy- mode in ESS

2012-01-31 Thread Ben Bolker
I am slowly getting up to speed/being dragged into using Roxygen in a project. I'm wondering if there's a way to emulate the behaviour of C-c C-p (Rd-preview-help) in Rd-mode (create a preview in a new Emacs buffer in "R Help Preview" mode), but from an Roxygen chunk. In Roxy-mode there is C-c

Re: [Rd] seq.Date bug?

2012-01-31 Thread Steven McKinney
> -Original Message- > From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] > On Behalf Of Jeffrey Ryan > Sent: January-31-12 12:47 PM > To: Dirk Eddelbuettel > Cc: R-devel org > Subject: Re: [Rd] seq.Date bug? > > format(ISOdate(2012,1:12,1),"%b-%Y") > > [1] "Jan-2

Re: [Rd] seq.Date bug?

2012-01-31 Thread Dirk Eddelbuettel
On 31 January 2012 at 15:28, Sarah Goslee wrote: | As Duncan pointed out, this is documented in ?seq.POSIXt: | | Using ‘"month"’ first advances the month without changing the day: | if this results in an invalid day of the month, it is counted | forward into the next month: see the

Re: [Rd] seq.Date bug?

2012-01-31 Thread Jeffrey Ryan
format(ISOdate(2012,1:12,1),"%b-%Y") [1] "Jan-2012" "Feb-2012" "Mar-2012" "Apr-2012" "May-2012" "Jun-2012" [7] "Jul-2012" "Aug-2012" "Sep-2012" "Oct-2012" "Nov-2012" "Dec-2012" First of the month is just as clean, and AFAIR they all have a first ;-) Jeff On Tue, Jan 31, 2012 at 2:37 PM, Dirk Ed

Re: [Rd] seq.Date bug?

2012-01-31 Thread Dirk Eddelbuettel
On 31 January 2012 at 15:17, Duncan Murdoch wrote: | On 12-01-31 2:56 PM, Dirk Eddelbuettel wrote: | > | > R> seq(as.Date(Sys.Date()), by="-1 months", length=6) | > [1] "2012-01-31" "2011-12-31" "2011-12-01" "2011-10-31" "2011-10-01" "2011-08-31" | > R> | > | > Notice how October appears twice.

Re: [Rd] seq.Date bug?

2012-01-31 Thread Sarah Goslee
As Duncan pointed out, this is documented in ?seq.POSIXt: Using ‘"month"’ first advances the month without changing the day: if this results in an invalid day of the month, it is counted forward into the next month: see the examples. But ?seq.Date gives the impression that the cons

Re: [Rd] seq.Date bug?

2012-01-31 Thread Marc Schwartz
On Jan 31, 2012, at 2:07 PM, Sarah Goslee wrote: > I was prompted to try it myself: > > On Tue, Jan 31, 2012 at 2:56 PM, Dirk Eddelbuettel wrote: >> >> R> seq(as.Date(Sys.Date()), by="-1 months", length=6) >> [1] "2012-01-31" "2011-12-31" "2011-12-01" "2011-10-31" "2011-10-01" >> "2011-08-31"

Re: [Rd] seq.Date bug?

2012-01-31 Thread Duncan Murdoch
On 12-01-31 2:56 PM, Dirk Eddelbuettel wrote: R> seq(as.Date(Sys.Date()), by="-1 months", length=6) [1] "2012-01-31" "2011-12-31" "2011-12-01" "2011-10-31" "2011-10-01" "2011-08-31" R> Notice how October appears twice. Now, date arithmetic is gruesome but the documentation for seq.Date et

Re: [Rd] seq.Date bug?

2012-01-31 Thread Sarah Goslee
I was prompted to try it myself: On Tue, Jan 31, 2012 at 2:56 PM, Dirk Eddelbuettel wrote: > > R> seq(as.Date(Sys.Date()), by="-1 months", length=6) > [1] "2012-01-31" "2011-12-31" "2011-12-01" "2011-10-31" "2011-10-01" > "2011-08-31" > R> > > Notice how October appears twice. As does December.

[Rd] seq.Date bug?

2012-01-31 Thread Dirk Eddelbuettel
R> seq(as.Date(Sys.Date()), by="-1 months", length=6) [1] "2012-01-31" "2011-12-31" "2011-12-01" "2011-10-31" "2011-10-01" "2011-08-31" R> Notice how October appears twice. Now, date arithmetic is gruesome but the documentation for seq.Date et al does not hint it wouldn't honour the by= argume

Re: [Rd] misfeature: forced file.copy() of a file over itself truncates the file ...

2012-01-31 Thread Ben Bolker
Ben Bolker gmail.com> writes: > Bump. Will I be scolded if I submit this as a bug report/wishlist item? Test case: > fn <- "tmp.dat" > x <- 1:3 > dump("x",file=fn) > file.info(fn) ## 9 bytes > file.copy(paste("./",fn,sep=""),fn,overwrite=TRUE) > file.info(fn) ## 0 bytes (!!)

Re: [Rd] Sweave driver extension

2012-01-31 Thread Yihui Xie
On Tue, Jan 31, 2012 at 7:18 AM, Terry Therneau wrote: > Three thinngs - >   My original questions to R-help was "who do I talk to".  That was > answered by Brian R, and the discussion of how to change Sweave moved > offline.  FYI, I have a recode in hand that allows arbitrary reordering > of chun

Re: [Rd] Sweave driver extension

2012-01-31 Thread Terry Therneau
Three thinngs - My original questions to R-help was "who do I talk to". That was answered by Brian R, and the discussion of how to change Sweave moved offline. FYI, I have a recode in hand that allows arbitrary reordering of chunks; but changes to code used by hundreds need to be approached ca

Re: [Rd] Help page of colors() : add a new example ?

2012-01-31 Thread Millot Gael
Very nice graphic indeed ! One way or another, it would be useful to have such examples in the help page of colors(). Thanks for your time !! Best, Gael. > -Message d'origine- > De : Dennis Murphy [mailto:djmu...@gmail.com] > Envoyé : lundi 30 janvier 2012 19:51 > À : Millot Gael > Cc