Re: [Rd] Indexing bug?

2010-05-26 Thread Deepayan Sarkar
On Wed, May 26, 2010 at 3:27 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: Is this expected behaviour? x - factor(c(c, b, a,c)) results - c(c=4, b=5) results[x] giving results[x] NA    b    c NA  NA    5    4   NA (i.e. it appears to give results[levels(x)] I would say it gives

Re: [Rd] S4 dispatch for .DollarNames (utils)

2010-05-29 Thread Deepayan Sarkar
On Sat, May 29, 2010 at 4:21 AM, Romain Francois rom...@r-enthusiasts.com wrote: Hello, I'm trying to make .DollarNames generic and implement a method for it in a package. .DollarNames is the function that is now called to get completion possibilities. My R code looks like this:

Re: [Rd] Argument recycling in substring()

2010-06-04 Thread Deepayan Sarkar
2010/6/4 Martin Maechler maech...@stat.math.ethz.ch: HP == Hervé Pagès hpa...@fhcrc.org     on Thu, 03 Jun 2010 17:53:33 -0700 writes:    HP Hi,    HP According to its man page substring() expands (its) arguments    HP cyclically to the length of the longest _provided_ none are of    HP

Re: [Rd] cut takes long time

2010-06-16 Thread Deepayan Sarkar
On Wed, Jun 16, 2010 at 3:56 PM, Gabor Grothendieck ggrothendi...@gmail.com wrote: The following cut command takes nearly 10 seconds on my machine even though the length of input vector is only 6.  I am running on Windows Vista with C2D BLAS using R 2.11.1.  Using the default BLAS and either R

Re: [Rd] Tips for debugging: R CMD check examples

2010-06-30 Thread Deepayan Sarkar
On Wed, Jun 30, 2010 at 3:26 AM, Hadley Wickham had...@rice.edu wrote: Hi all, Does anyone have any suggestions for debugging the execution of examples by R CMD check?  The examples work fine when I run them from a live R prompt, but I get errors when they are run by R CMD check. 'R CMD

Re: [Rd] Strange R object

2010-07-09 Thread Deepayan Sarkar
On Fri, Jul 9, 2010 at 5:25 AM, Peter Dalgaard pda...@gmail.com wrote: Gabor Grothendieck wrote: On Fri, Jul 9, 2010 at 5:09 AM, Peter Dalgaard pda...@gmail.com wrote: Gabor Grothendieck wrote: I have *** attached *** an RData file containing an R object that is acting strangely. Try this

Re: [Rd] strange interaction between rasterImage and Grid graphics

2010-10-02 Thread Deepayan Sarkar
On Fri, Oct 1, 2010 at 12:17 AM, baptiste auguie baptiste.aug...@googlemail.com wrote: Dear all, This may be specific to Mac, I haven't had a chance to test another platform. Consider this, plot(1,1,t=n) rasterImage(matrix(1),1,1,1,1) library(grid) grid.rect(gp=gpar(fill=grey)) The

Re: [Rd] strange interaction between rasterImage and Grid graphics

2010-10-02 Thread Deepayan Sarkar
On Sat, Oct 2, 2010 at 4:35 PM, Paul Murrell p.murr...@auckland.ac.nz wrote: Hi baptiste auguie wrote: Dear all, This may be specific to Mac, I haven't had a chance to test another platform. Consider this, plot(1,1,t=n) rasterImage(matrix(1),1,1,1,1) library(grid)

Re: [Rd] Source for bash_completion.d/R?

2011-05-03 Thread Deepayan Sarkar
On Tue, May 3, 2011 at 4:40 AM, Dirk Eddelbuettel e...@debian.org wrote: On 2 May 2011 at 11:32, Sharpie wrote: | Hello, I was just tweaking the R build for the Homebrew package manager and I | thought it would be nice to enable bash completion. I noticed that | Debian-based systems install

Re: [Rd] Cases of TAB-completion that hang Rterm

2011-06-22 Thread Deepayan Sarkar
On Tue, Jun 7, 2011 at 1:49 PM, Henrik Bengtsson h...@biostat.ucsf.edu wrote: FYI, via a bug report of one of my packages, I discovered that the following cases will hang Rterm when using TAB completion: CASE #1: Adding an empty default function for tail() causes Rterm on Windows to hang

Re: [Rd] Google Summer of Code 2009

2009-02-20 Thread Deepayan Sarkar
On 2/19/09, Dirk Eddelbuettel e...@debian.org wrote: [...] On 19 February 2009 at 09:33, Simon Urbanek wrote: | If primitive 3d scatterplot interactivity is all you want, go with | rggobi. It's GTK and has all this already and much more. However, | ggobi also shows why GTK is not a good

Re: [Rd] Colour Schemes

2009-05-21 Thread Deepayan Sarkar
On Thu, May 21, 2009 at 10:53 AM, Barry Rowlingson b.rowling...@lancaster.ac.uk wrote: On Thu, May 21, 2009 at 5:29 PM, Deepayan Sarkar deepayan.sar...@gmail.com wrote: [oops I didnt reply-to-all] But you could specify an explicit 'at' vector specifying the color breakpoints: effectively

Re: [Rd] [R] ggplot2 x axis question

2009-07-02 Thread Deepayan Sarkar
On Mon, Jun 29, 2009 at 9:05 AM, hadley wickhamh.wick...@gmail.com wrote: In that case, try: qplot(reorder(factor(model),delta),delta,data=growthm.bic) Deepayan: do you think there should also be a numeric method for reorder? r-devel now has a reorder.default (replacing reorder.factor and

Re: [Rd] more special completions

2009-08-21 Thread Deepayan Sarkar
On 8/21/09, Romain Francois romain.franc...@dbmail.com wrote: Hi, Would it be possible to add the capability for functions to register how they would like to complete themselves. Currently, there is the .addFunctionInfo, but it allows only functions to register a static list of potential

Re: [Rd] more special completions

2009-08-21 Thread Deepayan Sarkar
On 8/21/09, Vitalie S. vitosm...@rambler.ru wrote: On Fri, 21 Aug 2009 11:21:03 +0200, Romain Francois romain.franc...@dbmail.com wrote: Hi, Would it be possible to add the capability for functions to register how they would like to complete themselves. Currently, there is the

Re: [Rd] more special completions

2009-08-21 Thread Deepayan Sarkar
On 8/21/09, Romain Francois romain.franc...@dbmail.com wrote: On 08/21/2009 06:59 PM, Deepayan Sarkar wrote: On 8/21/09, Romain Francoisromain.franc...@dbmail.com wrote: Hi, Would it be possible to add the capability for functions to register how they would like to complete

Re: [Rd] Lattice: Drawing a single contour line with a negative value fails

2009-08-22 Thread Deepayan Sarkar
On 8/19/09, Thorn Thaler thot...@sbox.tugraz.at wrote: Hi everybody, I want to add a single contourline to a levelplot. While everything works fine if the value at which the line should be drawn is positive, there is an error if the value is negative: library(lattice) my.panel -

Re: [Rd] Improved Function Information with TAB Key

2009-10-08 Thread Deepayan Sarkar
On Wed, Oct 7, 2009 at 5:56 AM, Lee Kelvin lee.s.kel...@gmail.com wrote: Hello, Pressing the TAB key when typing a function into an R terminal does not produce the expected output.  Currently, R will order all of the available function inputs into alphabetical order and present them as

Re: [Rd] Improved Function Information with TAB Key

2009-10-08 Thread Deepayan Sarkar
should be useful for you. -Deepayan Thanks,     Lee Kelvin 2009/10/8 Deepayan Sarkar deepayan.sar...@gmail.com On Wed, Oct 7, 2009 at 5:56 AM, Lee Kelvin lee.s.kel...@gmail.com wrote: Hello, Pressing the TAB key when typing a function into an R terminal does not produce the expected

Re: [Rd] Windows installer, HTML help, R 2.10.0

2009-11-09 Thread Deepayan Sarkar
On Tue, Nov 10, 2009 at 10:35 AM, Oliver Soong osoon...@gmail.com wrote: I'm not 100% sure this hasn't been covered already (I searched a bit, but I had a little trouble filtering down to a useful number of useful results). It has, see

Re: [Rd] Two submitted packages

2006-09-05 Thread Deepayan Sarkar
On 9/5/06, Richard M. Heiberger [EMAIL PROTECTED] wrote: From: Prof Brian Ripley There is no '2.4.1', and your R-devel is not very recent. Apologies on the typo and the two-week old 2.4.0dev. I just downloaded version 2.4.0 Under development (unstable) (2006-09-04 r39086) 1. You

[Rd] unexpected behaviour when defining a function

2006-09-11 Thread Deepayan Sarkar
Hi, I know S manuals used to warn against using the same names for a variable and a function, but I have never seen that cause problems in R, so I usually don't pay much attention to it. Which is why the following behaviour came as a surprise: bar - function() 1 foo - function(bar = bar()) { +

Re: [Rd] unexpected behaviour when defining a function

2006-09-12 Thread Deepayan Sarkar
On 9/11/06, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Mon, 11 Sep 2006, Deepayan Sarkar wrote: Hi, I know S manuals used to warn against using the same names for a variable and a function, but I have never seen that cause problems in R, so I usually don't pay much attention

[Rd] changes in upcoming lattice

2006-09-14 Thread Deepayan Sarkar
Hi, there will be some fairly major changes in the lattice that will get released with R 2.4.0. A first version is now available on CRAN, at http://cran.r-project.org/src/contrib/2.4.0/Recommended/lattice_0.14-3.tar.gz Although there is a dependency on R 2.4, the package passes R CMD check on

[Rd] An update method for lists?

2006-09-15 Thread Deepayan Sarkar
Hi, since lattice uses nested lists in various situations, it has had an unexported function called updateList for a while, which looks like lattice:::updateList function (x, val) { if (is.null(x)) x - list() if (!is.list(x)) stop(x must be NULL or a list) if

Re: [Rd] An update method for lists?

2006-09-18 Thread Deepayan Sarkar
On 9/15/06, Deepayan Sarkar [EMAIL PROTECTED] wrote: On 9/15/06, Martin Maechler [EMAIL PROTECTED] wrote: DeepS == Deepayan Sarkar [EMAIL PROTECTED] on Fri, 15 Sep 2006 12:22:15 -0700 writes: DeepS Hi, since lattice uses nested lists in various DeepS situations, it has had

Re: [Rd] An update method for lists?

2006-09-18 Thread Deepayan Sarkar
On 9/18/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: It would be nice if the .Rd file had one or more examples since its not that easy to otherwise understand what it does. Regards. Added now, although it's not very realistic. Deepayan __

Re: [Rd] An update method for lists?

2006-09-19 Thread Deepayan Sarkar
-March/036696.html Again, the main question is whether it makes sense to introduce this in `one of the base packages'. -Deepayan On 9/18/06, Deepayan Sarkar [EMAIL PROTECTED] wrote: On 9/15/06, Deepayan Sarkar [EMAIL PROTECTED] wrote: On 9/15/06, Martin Maechler [EMAIL PROTECTED] wrote

Re: [Rd] newly introduced lattice bug

2006-09-30 Thread Deepayan Sarkar
On 9/30/06, Richard M. Heiberger [EMAIL PROTECTED] wrote: library(lattice) xyplot(rnorm(10) ~ rnorm(10) | factor(1:10), layout=c(2,3)) version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status RC

[Rd] warnings with plot=FALSE in hist.default

2006-10-11 Thread Deepayan Sarkar
Hi, the NEWS for R 2.4.0 has: o hist(*, plot = FALSE) now warns about unused arguments. I'm sure this does some good for someone somewhere, but it causes lattice::histogram() calls to produce warnings now in certain cases, which I need to fix. However, ?hist makes no mention of this new

Re: [Rd] Getting hold of a package's environment from C code

2006-10-22 Thread Deepayan Sarkar
On 10/22/06, Duncan Murdoch [EMAIL PROTECTED] wrote: On 10/22/2006 3:56 PM, Deepayan Sarkar wrote: Hi, I have a package where I'm calling an R function (say foo) from C code. foo is in the same package, but is not exported. I construct the call using lang1(install(foo)), but to eval

[Rd] Getting hold of a package's environment from C code

2006-10-22 Thread Deepayan Sarkar
Hi, I have a package where I'm calling an R function (say foo) from C code. foo is in the same package, but is not exported. I construct the call using lang1(install(foo)), but to eval it I need the package's environment. Is there a way to do this? Passing the correct environment through .Call()

Re: [Rd] ANN/RFC: package providing TAB completion for readline-based R

2006-10-23 Thread Deepayan Sarkar
On 10/23/06, Dirk Eddelbuettel [EMAIL PROTECTED] wrote: On 23 October 2006 at 16:51, Deepayan Sarkar wrote: [... nice announcement trimmed ...] | There are a couple of things about which I would like some advice: | | (1) The package currently contains a very rudimentary configure script

Re: [Rd] ANN/RFC: package providing TAB completion for readline-based R

2006-10-24 Thread Deepayan Sarkar
On 10/24/06, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Tue, 24 Oct 2006, Uwe Ligges wrote: [...] Questions: There are a couple of things about which I would like some advice: (1) The package currently contains a very rudimentary configure script which stops installation when

[Rd] typo in hist.Rd (PR#9355)

2006-11-10 Thread deepayan . sarkar
'Freedman' is misspelled (as 'Friedman') in src/library/graphics/man/hist.Rd. As a result, the help page currently implies that breaks = Fried is a valid argument to hist, but results in an error: hist(rnorm(100), breaks = Fried) Error in match.arg(tolower(breaks), c(sturges, fd,

[Rd] unwarranted warning from hist.default (PR#9356)

2006-11-10 Thread deepayan . sarkar
x = rnorm(100) b = seq(min(x) - 1, max(x) + 1, length = 11) b [1] -3.4038769 -2.7451072 -2.0863375 -1.4275678 -0.7687980 -0.1100283 [7] 0.5487414 1.2075111 1.8662808 2.5250506 3.1838203 invisible(hist(x, breaks = b, include.lowest = TRUE, plot = FALSE)) Warning message: argument

Re: [Rd] unwarranted warning from hist.default (PR#9356)

2006-11-10 Thread deepayan . sarkar
On 10 Nov 2006 23:39:14 +0100, Peter Dalgaard [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] writes: x = rnorm(100) b = seq(min(x) - 1, max(x) + 1, length = 11) b [1] -3.4038769 -2.7451072 -2.0863375 -1.4275678 -0.7687980 -0.1100283 [7] 0.5487414 1.2075111 1.8662808 2.5250506

Re: [Rd] bug in lrect [lattice]?

2006-11-13 Thread Deepayan Sarkar
On 11/13/06, Ben Bolker [EMAIL PROTECTED] wrote: In lattice version 0.14-11 (2006/10/23), there appears to be a small bug in lrect [lattice]: border is set to NULL accidentally. Yes, this bug was probably introduced while trying to fix PR#9307. But that was three whole weeks ago. Run

Re: [Rd] Source references from the parser

2006-11-25 Thread Deepayan Sarkar
On 11/25/06, Duncan Murdoch [EMAIL PROTECTED] wrote: I have just committed some changes to R-devel (which will become R 2.5.0 next spring) to add source references to parsed R code. Here's a description of the scheme: The design is done through 2 old-style classes. srcfile corresponds to a

Re: [Rd] Source references from the parser

2006-11-25 Thread Deepayan Sarkar
On 11/25/06, Duncan Murdoch [EMAIL PROTECTED] wrote: On 11/25/2006 3:12 PM, Deepayan Sarkar wrote: On 11/25/06, Duncan Murdoch [EMAIL PROTECTED] wrote: I have just committed some changes to R-devel (which will become R 2.5.0 next spring) to add source references to parsed R code. Here's

Re: [Rd] Source references from the parser

2006-11-26 Thread Deepayan Sarkar
On 11/25/06, Duncan Murdoch [EMAIL PROTECTED] wrote: On 11/25/2006 11:00 PM, Deepayan Sarkar wrote: On 11/25/06, Duncan Murdoch [EMAIL PROTECTED] wrote: On 11/25/2006 3:12 PM, Deepayan Sarkar wrote: On 11/25/06, Duncan Murdoch [EMAIL PROTECTED] wrote: I have just committed some changes

Re: [Rd] error in xYplot from Hmisc. (PR#9389)

2006-11-27 Thread deepayan . sarkar
On 11/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I was simply doing a graph, but an error repeatdly occurs. Any idea why? (this only happens in the latest R version, I am a windows user). What version is that exactly? Please give the output of sessionInfo(), since the latest R

Re: [Rd] empty pages in xyplot (2.4.0)

2006-12-08 Thread Deepayan Sarkar
On 12/8/06, Vladimir Dergachev [EMAIL PROTECTED] wrote: In 2.4.0 (and SVN) I am seeing xyplot creating empty pages for high page counts in layout - contrary to the manual which says high page counts should not matter. Everything works fine in 2.3.1. library(lattice) A-data.frame(x=1:10,

[Rd] apropos changes in r-devel: intended feature or bug?

2006-12-21 Thread Deepayan Sarkar
The old apropos started with: if (!is.character(what)) what - as.character(substitute(what)) The new one has: if (character.only) stopifnot(is.character(what)) else what - as.character(substitute(what)) i.e., the check for is.character(what) is missing. This has the

Re: [Rd] apropos changes in r-devel: intended feature or bug?

2006-12-22 Thread Deepayan Sarkar
On 12/22/06, Martin Maechler [EMAIL PROTECTED] wrote: DeepS == Deepayan Sarkar [EMAIL PROTECTED] on Thu, 21 Dec 2006 22:07:27 -0800 writes: DeepS The old apropos started with: if DeepS (!is.character(what)) what - DeepS as.character(substitute(what)) DeepS The new one

[Rd] R callbacks

2007-04-02 Thread Deepayan Sarkar
Hi, I'm trying to understand (mostly from the R-exts manual) how to use the callbacks declared in Rinterface.h. As a first attempt, I'm trying to redefine ptr_R_WriteConsole in a very trivial manner. Here's my code: --- $ cat altr.c int Rf_initialize_R(int ac, char **av); #define

Re: [Rd] R-Forge?

2007-04-06 Thread Deepayan Sarkar
On 4/6/07, hadley wickham [EMAIL PROTECTED] wrote: On 4/6/07, Stefan Theussl [EMAIL PROTECTED] wrote: hadley wickham wrote: I have recently found RForge.net (http://www.rforge.net/) by Simon Urbanek and found out today that the site is accepting subscriptions. Great! However,

[Rd] corrections to R-exts

2007-04-06 Thread Deepayan Sarkar
Hi, a couple of minor fixes to R-exts.texi: In @subsection Setting R callbacks which describes Rinterface.h, The @example block correctly has extern int (*ptr_R_ReadConsole)(char *, unsigned char *, int, int); extern int (*ptr_R_ShowFiles)(int, char **, char **, char *,

[Rd] wishlist: additional argument in R_tryEval (Rinternals.h)

2007-04-06 Thread Deepayan Sarkar
Hi, R_tryEval, exported in Rinternals.h but not part of the API, is currently defined as: R_tryEval(SEXP e, SEXP env, int *ErrorOccurred); I'm trying to embed R in an application (basically yet another GUI), and this has been very helpful to catch errors. It would be even more helpful if it

[Rd] help with Qt and event loops

2007-04-13 Thread Deepayan Sarkar
Hi, I have been playing with Qt recently, and have the beginnings of a Qt device. Unfortunately, I haven't been able to make it work as an R package yet (I know the device code works because I can use it from a GUI where R is embedded). Trying to package it, I have managed to get it to a stage

Re: [Rd] help with Qt and event loops

2007-04-13 Thread Deepayan Sarkar
On 4/13/07, Duncan Temple Lang [EMAIL PROTECTED] wrote: Hi Deepayan. I can take a look, but it may not be for a few days. No problem. But if anyone else has the time, can you keep us informed about any progress so that we don't replicate work in parallel. Sure. -Deepayan

[Rd] Rinterface.h on Windows

2007-04-13 Thread Deepayan Sarkar
Hi, it looks like Rinterface.h is not available on Windows. Does this mean I can not reset the various ptr_R_* callbacks? Is there an alternative? Is this something fundamentally difficult or something not done because no one needs it? -Deepayan __

Re: [Rd] Rinterface.h on Windows

2007-04-13 Thread Deepayan Sarkar
On 4/13/07, Deepayan Sarkar [EMAIL PROTECTED] wrote: Hi, it looks like Rinterface.h is not available on Windows. Does this mean I can not reset the various ptr_R_* callbacks? Is there an alternative? Is this something fundamentally difficult or something not done because no one needs

Re: [Rd] Rinterface.h on Windows

2007-04-14 Thread Deepayan Sarkar
On 4/13/07, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Fri, 13 Apr 2007, Deepayan Sarkar wrote: Hi, it looks like Rinterface.h is not available on Windows. Does this mean I can not reset the various ptr_R_* callbacks? Is there an alternative? Is this something fundamentally

[Rd] evaluation in unattached namespace

2007-04-26 Thread Deepayan Sarkar
Hi, I recently discovered this buglet in lattice: If lattice is _not_ attached, I get lattice::dotplot(~1:10) Error in eval(expr, envir, enclos) : could not find function bwplot This happens because of this: lattice:::dotplot.formula function (x, data = NULL, panel = panel.dotplot, ...) {

Re: [Rd] evaluation in unattached namespace

2007-04-26 Thread Deepayan Sarkar
On 4/26/07, Duncan Murdoch [EMAIL PROTECTED] wrote: On 4/26/2007 7:39 PM, Deepayan Sarkar wrote: Hi, I recently discovered this buglet in lattice: If lattice is _not_ attached, I get lattice::dotplot(~1:10) Error in eval(expr, envir, enclos) : could not find function bwplot

[Rd] Qt device update

2007-05-03 Thread Deepayan Sarkar
Hi, a few days back I had asked for help on a Qt device package. Thanks to hints from Duncan TL and Thomas Friedrichsmeier, I now have something more or less functional. For those interested, It can be downloaded from http://dsarkar.fhcrc.org/R/R-Qt.html I have a couple of related questions.

Re: [Rd] Qt device update

2007-05-04 Thread Deepayan Sarkar
On 5/3/07, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Thu, 3 May 2007, Deepayan Sarkar wrote: Hi, a few days back I had asked for help on a Qt device package. Thanks to hints from Duncan TL and Thomas Friedrichsmeier, I now have something more or less functional. For those

[Rd] sending signals to embedded R

2007-05-04 Thread Deepayan Sarkar
Hi, one thing I haven't been able to figure out from R-exts is how to interrupt a calculation running inside an embedded R. C code inside R calls R_CheckUserInterrupt() intermittently to check for interrupts, but how does my GUI tell R that the user wants it interrupted? -Deepayan

Re: [Rd] sending signals to embedded R

2007-05-04 Thread Deepayan Sarkar
On 5/4/07, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Fri, 4 May 2007, Deepayan Sarkar wrote: one thing I haven't been able to figure out from R-exts is how to interrupt a calculation running inside an embedded R. C code inside R calls R_CheckUserInterrupt() intermittently to check

Re: [Rd] sending signals to embedded R

2007-05-06 Thread deepayan . sarkar
On 5/5/07, Luke Tierney [EMAIL PROTECTED] wrote: On Sat, 5 May 2007, Prof Brian Ripley wrote: On Sat, 5 May 2007, Luke Tierney wrote: On Sat, 5 May 2007, Prof Brian Ripley wrote: On Fri, 4 May 2007, Luke Tierney wrote: On Fri, 4 May 2007, Deepayan Sarkar wrote: On 5/4/07, Prof

Re: [Rd] sending signals to embedded R

2007-05-06 Thread deepayan . sarkar
On 5/6/07, Jeffrey Horner [EMAIL PROTECTED] wrote: Luke Tierney wrote: [...] Is there a reason R_ProcessEvents cannot be set on Unix but can on Mac? It doesn't seem user-settable on Windows, but whatever the built in default is seems to handle the Qt event loop. And for that matter, why

Re: [Rd] Qt device update

2007-05-07 Thread Deepayan Sarkar
On 5/5/07, Prof Brian Ripley [EMAIL PROTECTED] wrote: [...] odev.interactive() regards devices with the displaylist enabled as interactive, and packages can register the names of their devices as interactive via deviceIsInteractive(). Thanks. A related issue: 2.5.0's

Re: [Rd] sending signals to embedded R

2007-05-07 Thread Deepayan Sarkar
On 5/6/07, Deepayan Sarkar [EMAIL PROTECTED] wrote: I will have to start learning about gdb sometime soon, but in this case, the problem seems to be due to the interaction of R_tryEval() and graphics, and has nothing to do with interruptions. Here's a variant of the trEval test case

Re: [Rd] sending signals to embedded R [SOLVED]

2007-05-07 Thread deepayan . sarkar
On 5/7/07, Deepayan Sarkar [EMAIL PROTECTED] wrote: On 5/6/07, Deepayan Sarkar [EMAIL PROTECTED] wrote: I will have to start learning about gdb sometime soon, but in this case, the problem seems to be due to the interaction of R_tryEval() and graphics, and has nothing to do

[Rd] dev.interactive() changes

2007-05-21 Thread Deepayan Sarkar
On 5/5/07, Prof Brian Ripley [EMAIL PROTECTED] wrote: [...] You meam as in o dev.interactive() regards devices with the displaylist enabled as interactive, and packages can register the names of their devices as interactive via deviceIsInteractive(). ? Quick follow

[Rd] regexp bug in very recent r-devel

2007-05-22 Thread Deepayan Sarkar
completion is semi-broken in today's r-devel, and the reason seems to be some regular expression changes: sessionInfo() R version 2.6.0 Under development (unstable) (2007-05-22 r41673) i686-pc-linux-gnu locale: [...] attached base packages: [1] stats graphics grDevices utils datasets

[Rd] Calling R_PolledEvents from R_CheckUserInterrupt

2007-05-31 Thread Deepayan Sarkar
On 5/5/07, Luke Tierney [EMAIL PROTECTED] wrote: [...] However, R_PolledEvents is only called from a limited set of places now (including the socket reading code to keep things responsive during blocking reads). But it is not called from the interupt checking code, which means if a user

[Rd] feature request for page() and options()

2007-05-31 Thread Deepayan Sarkar
Hi, I have been playing around with a Qt based pager. One of the things I would like to be able to do is syntax highlighting for R code. This is mostly relevant with the page function, e.g. page(ls) The problem in this case is that the pager has no way of knowing whether the file it is showing

[Rd] HTML vignette browser

2007-06-01 Thread Deepayan Sarkar
Hi, this is tangentially related to the recent discussion on vignettes. vignette() currently produces a listing of available vignettes, but these are not clickable. Since R has a browseURL() function, it seems natural to have a version that produces HTML with clickable links. Here's an attempt at

Re: [Rd] HTML vignette browser

2007-06-04 Thread Deepayan Sarkar
On 6/4/07, Seth Falcon [EMAIL PROTECTED] wrote: Friedrich Leisch [EMAIL PROTECTED] writes: Looks good to me, and certainly something worth being added to R. 2 quick (related) comments: 1) I am not sure if we want to include links to the Latex-Sources by default, those might confuse

Re: [Rd] HTML vignette browser

2007-06-04 Thread Deepayan Sarkar
On 6/4/07, Prof Brian Ripley [EMAIL PROTECTED] wrote: Folks, I think this is a nice idea (and not very different to somethign I have bene playing with), but with lots of CHARSXP changes pending I'd like to come back to it next week or so. Sorry, Deepayan, you've happened to hit a very busy

Re: [Rd] HTML vignette browser

2007-06-05 Thread Deepayan Sarkar
On 6/5/07, Friedrich Leisch [EMAIL PROTECTED] wrote: On Mon, 04 Jun 2007 11:52:51 -0700, Robert Gentleman (RG) wrote: Deepayan Sarkar wrote: On 6/4/07, Seth Falcon [EMAIL PROTECTED] wrote: Friedrich Leisch [EMAIL PROTECTED] writes: Looks good to me, and certainly something

Re: [Rd] parse(text=...) and the srcfile attribute

2007-07-12 Thread Deepayan Sarkar
but was hoping for a better way than this. -Deepayan On 7/12/07, Deepayan Sarkar [EMAIL PROTECTED] wrote: Hi, I'm trying to understand whether the new source file references can help me with something I want to do. Let's say I have foo - parse(text = a - 1; b - 2**2 a + b

[Rd] parse(text=...) and the srcfile attribute

2007-07-12 Thread Deepayan Sarkar
Hi, I'm trying to understand whether the new source file references can help me with something I want to do. Let's say I have foo - parse(text = a - 1; b - 2**2 a + b ) I now wish to recover the sources for the parsed expressions. I can get them one at a time: foo[[2]] b - 2^2

[Rd] substitute and expression

2007-07-16 Thread Deepayan Sarkar
Hi, I'm trying to understand whether the use of substitute() is appropriate/documented for plotmath annotation. The following two calls give the same results: plot(1:10, main = expression(alpha == 1)) do.call(plot, list(1:10, main = expression(alpha == 1))) But not these two: plot(1:10,

Re: [Rd] substitute and expression

2007-07-16 Thread Deepayan Sarkar
On 7/16/07, Peter Dalgaard [EMAIL PROTECTED] wrote: Deepayan Sarkar wrote: Hi, I'm trying to understand whether the use of substitute() is appropriate/documented for plotmath annotation. The following two calls give the same results: plot(1:10, main = expression(alpha == 1

Re: [Rd] aesthetics of do.call

2007-08-20 Thread deepayan . sarkar
On 8/20/07, Vincent Carey 525-2265 [EMAIL PROTECTED] wrote: library(MASS) G1 = glm(sp~CW, data=crabs, fam=binomial) G2 = do.call(glm, list(sp~CW, family=binomial, data=crabs)) G1$call is very nice to look at G2$call is very voluminous if we revise do.call to function (what, args, quote

Re: [Rd] Friday question: negative zero

2007-08-31 Thread deepayan . sarkar
On 8/31/07, Duncan Murdoch [EMAIL PROTECTED] wrote: The IEEE floating point standard allows for negative zero, but it's hard to know that you have one in R. One reliable test is to take the reciprocal. For example, y - 0 1/y [1] Inf y - -y 1/y [1] -Inf The other day I

Re: [Rd] Command completion of the R binary / Ubuntu

2012-01-11 Thread Deepayan Sarkar
On Wed, Jan 11, 2012 at 4:16 PM, Claudia Beleites claudia.belei...@ipht-jena.de wrote: Dear Deepayan and dear list, I notice a small inconsistency with the command completion of the R CMD check. --no-latex is deprecated sincs R 2.12.0 and defunct since 2.13.0 but the command line completion

Re: [Rd] [ESS] completion in [] (R internal completion fails)

2012-03-15 Thread Deepayan Sarkar
On Wed, Mar 14, 2012 at 3:27 PM, Vitalie Spinu spinu...@gmail.com wrote: Hello, I am forwarding this from ESS mailing list, as it's a failure of internal R completion system: This fails: utils:::.assignLinebuffer('iris[iris$Spec') utils:::.assignEnd(15) utils:::.guessTokenFromLine()

Re: [Rd] warning in lattice key function

2012-08-23 Thread Deepayan Sarkar
On Thu, Aug 16, 2012 at 8:35 AM, Richard M. Heiberger r...@temple.edu wrote: ## this example shows a problem in key. tmp - data.frame(y=rnorm(10), g=rep(ordered(c(A,B)), 5)) bwplot(y ~ g, data=tmp, key=list( text=list(c(A,B), col=c(blue,red)), points=list(pch=c(17,

Re: [Rd] Question lattice SplomT

2012-09-24 Thread Deepayan Sarkar
On Mon, Sep 24, 2012 at 9:22 PM, Christian Hoffmann c-w.hoffm...@sunrise.ch wrote: Dear Deepayan Sarkar, I have (again) a question concerning panel and my function SplomT, see attachments. Some time ago you helped me to write this function, thanks again. I have used it to great advantage

Re: [Rd] 'modifyList' drops (not adds) NULL components

2013-06-28 Thread Deepayan Sarkar
On Thu, Jun 27, 2013 at 10:59 PM, Raubertas, Richard richard_rauber...@merck.com wrote: Dear list, Utils::modifyList() drops NULL components in its second argument, instead of adding them to the first argument. Compare: modifyList(x=list(A=1), val=list(B=2, C=3)) $A [1] 1 $B [1] 2 $C

Re: [Rd] Extending suggestion for stopifnot

2013-08-20 Thread Deepayan Sarkar
On Wed, Aug 21, 2013 at 12:11 AM, ivo welch ivo.we...@anderson.ucla.edu wrote: I am using a variant of stopifnot a lot. can I suggest that base R extends its functionality? I know how to do this for myself. this is a suggestion for beginners and students. I don't think it would break

Re: [Rd] Extending suggestion for stopifnot

2013-08-21 Thread Deepayan Sarkar
On Wed, Aug 21, 2013 at 3:30 AM, ivo welch ivo.we...@gmail.com wrote: thx, deepayan: how is stopifnot better than if (!all(...)) stop() But I am not claiming that it is! If you think it is not useful, then don't use stopifnot(), use stop() instead, and tell your students to do so as well.

Re: [Rd] Defaults for postscript()

2007-12-06 Thread Deepayan Sarkar
On 12/6/07, Prof Brian Ripley [EMAIL PROTECTED] wrote: The defaults for postscript() paper = default onefile = TRUE horizontal = TRUE (it seems) date from the days when people used to used this to send plots directly to a postscript printer via print.it=TRUE. I haven't done that for

Re: [Rd] interactive graphics devices

2007-12-18 Thread Deepayan Sarkar
On 12/18/07, Byron Ellis [EMAIL PROTECTED] wrote: I probably missed this discussion, but why not just ASK the device if it is interactive? That's done if the device is open. deviceIsInteractive() takes away the guessing even when it's not (the use-case is when you type example(something)

Re: [Rd] available.packages() not accurate?

2007-12-18 Thread Deepayan Sarkar
On 12/18/07, hadley wickham [EMAIL PROTECTED] wrote: pkgs - as.data.frame(available.packages(contrib.url(http://cran.r-project.org;))) pkgs[sn, c(Package, Version)] But looking at http://cran.r-project.org/src/contrib/ only sn_0.4-2 is available. Any ideas? I see 0.4-4. Could be a

Re: [Rd] available.packages() not accurate?

2007-12-18 Thread Deepayan Sarkar
On 12/18/07, hadley wickham [EMAIL PROTECTED] wrote: On 12/18/07, Deepayan Sarkar [EMAIL PROTECTED] wrote: On 12/18/07, hadley wickham [EMAIL PROTECTED] wrote: pkgs - as.data.frame(available.packages(contrib.url(http://cran.r-project.org;))) pkgs[sn, c(Package, Version

Re: [Rd] Surprising behaviour of levelplot in lattice package

2008-02-13 Thread Deepayan Sarkar
On 2/13/08, Deepayan Sarkar [EMAIL PROTECTED] wrote: On 2/13/08, Wolfgang Huber [EMAIL PROTECTED] wrote: Hi Deepayan, levelplot from the lattice package produces a peculiar output when called on a matrix whose column or row names contained duplicated elements. In particular, the plot

Re: [Rd] Surprising behaviour of levelplot in lattice package

2008-02-13 Thread Deepayan Sarkar
On 2/13/08, Wolfgang Huber [EMAIL PROTECTED] wrote: Hi Deepayan, levelplot from the lattice package produces a peculiar output when called on a matrix whose column or row names contained duplicated elements. In particular, the plot contains white stripes, and the arrangement of data regions

Re: [Rd] R on AIX?

2008-02-14 Thread Deepayan Sarkar
On 2/14/08, Susan R. Atlas [EMAIL PROTECTED] wrote: Hi, Last year our systems group tried to install R on an IBM p5-570 machine (16 nodes, 256 GB shared RAM), running AIX 5.3. They ran into all sorts of difficulties and finally gave up. I am interested in trying again (and working

Re: [Rd] autocompletion problem

2008-04-09 Thread Deepayan Sarkar
On 4/9/08, Herve Pages [EMAIL PROTECTED] wrote: Hi, Let's create the xxx object just to avoid confusion even if it's not necessary for reproducing the problem below: xxx - 8:3 If I start typing this: max(xxx[ and now try to autocomplete with TAB, then I get the following

Re: [Rd] autocompletion problem

2008-04-10 Thread Deepayan Sarkar
On 4/9/08, Herve Pages [EMAIL PROTECTED] wrote: [...] BTW are there any plans to deal with backquoted symbols/names? There are currently 2 problems with this: 1. Completion will work and expand symbols or names that contain special characters but without backquoting them:

Re: [Rd] RFC: What should ?foo do?

2008-04-25 Thread Deepayan Sarkar
For what it's worth, I use ?foo mostly to look up usage of functions that I know I want to use, and find it perfect for that (one benefit over help() is that completion works for ?). The only thing I miss is the ability to do the equivalent of help(foo, package = bar); ?bar::foo gives the help

Re: [Rd] R-Forge SVN repositories: R CMD build/check error on Windows machines

2008-04-28 Thread Deepayan Sarkar
On 4/28/08, Prof Brian Ripley [EMAIL PROTECTED] wrote: The difference is in INSTALL, not build/check. You are right that the Unix INSTALL was changed in r25808 (Aug 2003), but AFAICS this was not documented at the time in [O]NEWS, nor anywhere else. Can you point me to the documentation

Re: [Rd] rawToChar(raw(0))

2008-05-21 Thread Deepayan Sarkar
On 5/21/08, Henrik Bengtsson [EMAIL PROTECTED] wrote: Hi, right now we have (on R v2.7.0 patched (2008-04-23 r45466)) that: rawToChar(raw(0)) [1] rawToChar(raw(0), multiple=TRUE) character(0) Is this intended or should both return character(0)? Personally, I would prefer that

Re: [Rd] R CMD INSTALL problem

2008-10-21 Thread Deepayan Sarkar
On Tue, Oct 21, 2008 at 3:23 PM, John Fox [EMAIL PROTECTED] wrote: Dear list members, I've run into a problem with R CMD INSTALL under Windows Vista and R 2.8.0: - snip --- C:\Users\John Fox\workspacec:\R\R-2.8.0\bin\R CMD INSTALL car installing to '' Not sure if this is

Re: [Rd] Getting the panel location of a xyplot matrix using a mouse click in a GDCanvas

2008-10-23 Thread Deepayan Sarkar
On Thu, Oct 23, 2008 at 12:26 PM, Daniel Kornhauser [EMAIL PROTECTED] wrote: Hi: I would like to find out the panel of a xyplot matrix where a mouse clicked. I know this functionality is already bundled in trellis.focus but I can't use it because I am coding a stand alone application in Java

  1   2   >