Re: [Rd] Small modification of zip.file.extract in utils?

2008-10-30 Thread Duncan Murdoch
On 10/30/2008 3:08 PM, Jon Olav Skoien wrote: Dear list, I needed to extract a zip-archive, and found zip.file.extract in utils. My only problem was the use of tempdir(), since I wanted to permanently extract the archive at a fixed location for later use. My own fix was simple, adding an extr

Re: [Rd] using yscrollcommand in tkcanvas crashes R (PR#13231)

2008-10-30 Thread Paul Roebuck
On Thu, 30 Oct 2008 [EMAIL PROTECTED] wrote: > Full_Name: Sundar Dorai-Raj > Version: 2.8.0 > OS: Windows > Submission from: (NULL) (76.220.41.126) > > > The following code crashes R: > > library(tcltk) > tt <- tktoplevel() > tc <- tkcanvas(tt, yscrollcommand = function(...) tkset(ts, ...)) > > >

[Rd] Small modification of zip.file.extract in utils?

2008-10-30 Thread Jon Olav Skoien
Dear list, I needed to extract a zip-archive, and found zip.file.extract in utils. My only problem was the use of tempdir(), since I wanted to permanently extract the archive at a fixed location for later use. My own fix was simple, adding an extra parameter zipdir (without default), and withi

Re: [Rd] using yscrollcommand in tkcanvas crashes R (PR#13231)

2008-10-30 Thread Sundar Dorai-Raj
Hi, Greg, Thanks again for your comments. I got it to work with your suggestion: library(tcltk) tt <- tktoplevel() ts <- ttkscrollbar(tt) tc <- tkcanvas(tt) tkconfigure(ts, command = function(...) tkyview(tc, ...)) tkconfigure(tc, yscrollcommand = function(...) tkset(ts, ...)) tkpack(tc, side =

Re: [Rd] Fixing an only one coefficient in an ARIMA model

2008-10-30 Thread Prof Brian Ripley
On Tue, 28 Oct 2008, Yohann MOREAU wrote: Good afternoon, I would like fitting an ARIMA model without the first coefficient. For example, I want to fit an AR(3) like this : y[t]=a[1]*y[t-1]+a[2]*y[t-2]+a[3]*y[t-3], where a[1]=0. How can I specify it in the function "arima", if it is possible ?

Re: [Rd] using yscrollcommand in tkcanvas crashes R (PR#13231)

2008-10-30 Thread Greg . Snow
I don't know if this is the case here or not, but putting in scrollbars and= scrolling can be a bit tricky. It usually works best to create the canvas= without a scroll command, then create the scrollbar(s), then use tkconfig = to go back and add the scroll command to the canvas after the scroll

Re: [Rd] using yscrollcommand in tkcanvas crashes R (PR#13231)

2008-10-30 Thread Greg Snow
I don't know if this is the case here or not, but putting in scrollbars and scrolling can be a bit tricky. It usually works best to create the canvas without a scroll command, then create the scrollbar(s), then use tkconfig to go back and add the scroll command to the canvas after the scrollbar

Re: [Rd] conditionally import a namespace?

2008-10-30 Thread Gabor Grothendieck
I noticed there is also an experimental interface that can be used from R (as opposed to the NAMESPACE file). Can't tell from docs whether it allows conditionals: ?.Import On Thu, Oct 30, 2008 at 10:44 AM, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 10/30/2008 10:15 AM, Martin Maechler wrote

Re: [Rd] conditionally import a namespace?

2008-10-30 Thread Duncan Murdoch
On 10/30/2008 10:44 AM, Duncan Murdoch wrote: On 10/30/2008 10:15 AM, Martin Maechler wrote: "FA" == Felix Andrews <[EMAIL PROTECTED]> on Thu, 30 Oct 2008 17:40:17 +1100 writes: FA> Dear R-devel, FA> I have a problem defining the dependencies for a package. FA> My package (lat

Re: [Rd] conditionally import a namespace?

2008-10-30 Thread Duncan Murdoch
On 10/30/2008 10:15 AM, Martin Maechler wrote: "FA" == Felix Andrews <[EMAIL PROTECTED]> on Thu, 30 Oct 2008 17:40:17 +1100 writes: FA> Dear R-devel, FA> I have a problem defining the dependencies for a package. FA> My package (latticist, not yet released) "Suggests" RGtk2, but

Re: [Rd] conditionally import a namespace?

2008-10-30 Thread Jeff Ryan
Or something along the lines of: Suggests: RGtk2 f <- function (x, ...) { stopifnot("package:RGtk2" %in% search() || require("RGtk2", quietly = TRUE)) # do Rgtk2 stuff here } Jeff On Thu, Oct 30, 2008 at 9:15 AM, Martin Maechler <[EMAIL PROTECTED]> wrote: >> "FA" == Felix Andrews <

Re: [Rd] conditionally import a namespace?

2008-10-30 Thread Martin Maechler
> "FA" == Felix Andrews <[EMAIL PROTECTED]> > on Thu, 30 Oct 2008 17:40:17 +1100 writes: FA> Dear R-devel, FA> I have a problem defining the dependencies for a package. FA> My package (latticist, not yet released) "Suggests" RGtk2, but FA> specifically does not require

Re: [Rd] (PR#13209) Arith ops dropping S4 *and* 'object' bit [Was: ...]

2008-10-30 Thread maechler
> "JMC" == John Chambers <[EMAIL PROTECTED]> > on Tue, 28 Oct 2008 11:50:38 -0400 writes: JMC> The asymmetry is just the symptom of a more fundamental JMC> issue: There are no operator methods currently defined JMC> for "vector" classes, either combined with each other