[Rd] hist.default documentation

2005-06-17 Thread Deepayan Sarkar
I think there are a couple of things in ?hist that are not quite as clear as they could be. (1) freq: logical; if 'TRUE', the histogram graphic is a representation of frequencies, the 'counts' component of the result; if 'FALSE', _relative_ frequencies ("probabilities"),

Re: [Rd] hist.default documentation

2005-06-17 Thread Deepayan Sarkar
On 6/17/05, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 6/17/2005 8:58 AM, Deepayan Sarkar wrote: > > I think there are a couple of things in ?hist that are not quite as > > clear as they could be. > > > > (1) > > > > freq: logical; if 

[Rd] R CMD check failing to warn when it should

2005-08-03 Thread Deepayan Sarkar
Hi, I recently made changes to lattice code which needed changes in many man pages as well. Before I made the appropriate changes, R CMD check was flagging most of the problems correctly, except for the man page for tmd. I have created a toy package that shows this, available at http://www.stat.w

Re: [Rd] histogram method for S4 class.

2005-08-25 Thread Deepayan Sarkar
On 8/24/05, ernesto <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to develop an histogram method for a class called "FLQuant" > which is used by the package FLCore (http://flr-project.org). FLQuant is > an extension to "array". There is an as.data.frame method that coerces > flquant into a data.

Re: [Rd] Fwd: segfault

2005-08-29 Thread Deepayan Sarkar
t; > >> this small exaple leads to a crash of R. I did not try it on > >> versions other than the Mac version. So I am sending it to you > >> directly. If it is a littice problem, could you pass it to Deepayan > >> Sarkar? Thank you. > >> > >> g. >

Re: [Rd] Fwd: segfault

2005-09-07 Thread Deepayan Sarkar
>> > >>>> From: "G. Sawitzki" <[EMAIL PROTECTED]> > >>>> Date: 28 agosto 2005 14:11:18 GMT+02:00 > >>>> To: [EMAIL PROTECTED] > >>>> > >>>> > >>>> Dear Stefano, > >>>>

Re: [Rd] more problems when using "installWithVers"

2005-10-04 Thread Deepayan Sarkar
On Tuesday 04 October 2005 07:48, Prof Brian Ripley wrote: > Tony, > > The problem is specific to your example: > > install.packages("ash") > > ... > > > install.packages("ash", installWithVers=TRUE) > > library("ash", version="1.0-9") > > search() > > [1] ".GlobalEnv""package:ash_1.0-9"

Re: [Rd] extending lattice to S4 classes

2005-10-19 Thread Deepayan Sarkar
On 10/18/05, ernesto <[EMAIL PROTECTED]> wrote: > Prof Brian Ripley wrote: > > > I think you are confusing us: xyplot is an S3 generic with no 'data' > > argument. It is xyplot.formula that you want to add dispatch on its > > 'data' argument. I don't really see why you want to mix S3 and S4 > >

[Rd] 'partial' in sort() inefficient?

2005-11-25 Thread Deepayan Sarkar
I often need to work with large vectors whose distribution I want to summarize by Q-Q plots. Since the vectors are large, I use a subset of quantiles, e.g. quantile(x, probs = ppoints(1000)) Unfortunately, this seemed to be taking too long for large x (much longer than 'sort'). I initially thou

[Rd] [ANN] bash completion for R

2005-11-30 Thread Deepayan Sarkar
[This is of potential interest primarily to bash users and R package developers (hence the posting to r-devel only). Others, feel free to ignore.] I have been using bash's command completion features [1] for a while now, to the point where I expect everything to just work when I hit TAB. Since

Re: [Rd] defining a print method

2006-01-04 Thread Deepayan Sarkar
On 1/4/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > In the following session we define an xx class and a print method > for it. If I invoke it with print then it prints as expected but if > we just type xx at the R prompt then we get nothing back. How > do we define the print method so tha

Re: [Rd] extending lattice to S4 classes

2006-01-05 Thread Deepayan Sarkar
On 10/20/05, ernesto <[EMAIL PROTECTED]> wrote: [...] > Hi Deepayan, > > I see that there are alternatives, I found one my self that works and > it's transparent for the user. > > I don't want to implement solutions that force the user to use lattice > methods differently from your implementation

[Rd] bug in rbind.data.frame: wrong rownames (PR#8506)

2006-01-19 Thread deepayan . sarkar
Hi, there is a bug in the calculation of row names in rbind.data.frame. When one of the arguments has 0 rows but is named in the call, this mistakenly contributes an element in the "row.names" attribute of the result, e.g.: > foo <- data.frame(x = 1:10, y = rnorm(10)) > bar1 <- rbind.data.frame(f

Re: [Rd] inappropriate warning in latticeExtra

2018-04-02 Thread Deepayan Sarkar
On Fri, Mar 23, 2018 at 7:58 AM, Richard M. Heiberger wrote: > The warning message in the last line of this email is incorrect. > This is behavior which Duncan Murdoch labeled a bug in >https://stat.ethz.ch/pipermail/r-help/2017-December/450494.html Yes, sorry, this has been fixed in the r-fo

Re: [Rd] apply with zero-row matrix

2018-07-30 Thread Deepayan Sarkar
On Mon, Jul 30, 2018 at 6:08 PM, Martin Maechler wrote: >> David Hugh-Jones >> on Mon, 30 Jul 2018 10:12:24 +0100 writes: > > > Hi Martin, Fair enough for R functions in general. But the > > behaviour of apply violates the expectation that apply(m, > > 1, fun) calls fun n t

Re: [Rd] [R] Bug : Autocorrelation in sample drawn from stats::rnorm (hmh)

2018-10-05 Thread Deepayan Sarkar
On Fri, Oct 5, 2018 at 2:07 PM hmh wrote: > > On 05/10/2018 10:28, Annaert Jan wrote: > > you discard any time series structure; > But that is PRECISELY what a call a bug: > There should not be any "time series structure" in the output or rnorm, > runif and so on but there is one. > > rnorm(N,0,1)

Re: [Rd] inappropriate warning in latticeExtra

2019-06-15 Thread Deepayan Sarkar
nction > > Can we have it in R-3.6.1 that Peter just announced? Sorry I have been neglecting this (and some lattice bugs as well). I should get time to work on this after mid-July. -Deepayan > > Rich > > On Mon, Apr 2, 2018 at 4:08 AM Deepayan Sarkar > wrote: >

Re: [Rd] inappropriate warning in latticeExtra

2019-12-06 Thread Deepayan Sarkar
nguage R > version.string R Under development (unstable) (2019-12-03 r77513) > nickname Unsuffered Consequences > > Rich > > > > On Sat, Jun 15, 2019 at 3:13 AM Deepayan Sarkar > wrote: > > > > On Fri, Jun 14, 2019 at 6:42 PM Richard M. Heiberger

Re: [Rd] Possible documentation problem/bug?

2020-04-30 Thread Deepayan Sarkar
On Thu, Apr 30, 2020 at 6:04 PM Dominic Littlewood <11dlittlew...@gmail.com> wrote: > > It seems like there is no obvious way in the documentation to convert the > expressions in the dots argument to a list without evaluating them. Say, if > you want to have a function that prints all its arguments

Re: [Rd] Surpising behavior when using an active binding as loop index in R 4.0.0

2020-05-23 Thread Deepayan Sarkar
A shorter reproducible example: example(makeActiveBinding) for (fred in 1:3) { 0 } ls() Both problems go away if you first do compiler::enableJIT(2) So looks like a bug in compiling the for loop. -Deepayan On Sat, May 23, 2020 at 5:45 PM Thomas Friedrichsmeier via R-devel wrote: > > Possibly

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 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 check pkg' will

Re: [Rd] Strange R object

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

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 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 grid.rect covers 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 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) >> grid.rect(gp=gpar(fi

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

2011-05-02 Thread Deepayan Sarkar
On Tue, May 3, 2011 at 4:40 AM, Dirk Eddelbuettel 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 `/etc/bas

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 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 if one press TA

Re: [Rd] R CMD BATCH vs R CMD batch

2015-10-29 Thread Deepayan Sarkar
On Thu, Oct 29, 2015 at 2:09 PM, Rainer M Krug wrote: > Dirk Eddelbuettel writes: > >> On 28 October 2015 at 21:39, Marius Hofert wrote: >> | Out of laziness I just used "R CMD batch" instead of "R CMD BATCH". I >> | didn't get an error so didn't think about the consequences... One >> | consequen

Re: [Rd] unlicense

2017-01-13 Thread Deepayan Sarkar
On Sat, Jan 14, 2017 at 5:49 AM, Duncan Murdoch wrote: > On 13/01/2017 3:21 PM, Charles Geyer wrote: >> >> I would like the unlicense (http://unlicense.org/) added to R >> licenses. Does anyone else think that worthwhile? >> > > That's a question for you to answer, not to ask. Who besides you th

Re: [Rd] R-3.3.3/R-3.4.0 change in sys.call(sys.parent())

2017-05-11 Thread Deepayan Sarkar
On Wed, May 10, 2017 at 2:36 AM, William Dunlap via R-devel wrote: > Some formula methods for S3 generic functions use the idiom > returnValue$call <- sys.call(sys.parent()) > to show how to recreate the returned object or to use as a label on a > plot. It is often followed by > returnVa

Re: [Rd] R-3.3.3/R-3.4.0 change in sys.call(sys.parent())

2017-05-12 Thread Deepayan Sarkar
inside every method. -Deepayan > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > On Thu, May 11, 2017 at 1:09 AM, Deepayan Sarkar > wrote: >> >> On Wed, May 10, 2017 at 2:36 AM, William Dunlap via R-devel >> wrote: >> > Some formula methods

Re: [Rd] R-devel internal errors during check produce?

2020-06-30 Thread Deepayan Sarkar
On Tue, Jun 30, 2020 at 1:32 PM Martin Maechler wrote: > > > Kurt Hornik > > on Tue, 30 Jun 2020 06:20:57 +0200 writes: > > > Jan Gorecki writes: > >> Thank you both, You are absolutely correct that example > >> should be minimal, so here it is. > > >> l = list(a=new.en

Re: [Rd] New pipe operator

2020-12-04 Thread Deepayan Sarkar
On Fri, Dec 4, 2020 at 7:35 PM Duncan Murdoch wrote: > > On 04/12/2020 8:13 a.m., Hiroaki Yutani wrote: > >> Error: function '::' not supported in RHS call of a pipe > > > > To me, this error looks much more friendly than magrittr's error. > > Some of them got too used to specify functions witho

Re: [Rd] New pipe operator

2020-12-07 Thread Deepayan Sarkar
On Mon, Dec 7, 2020 at 6:53 PM Gabor Grothendieck wrote: > > On Mon, Dec 7, 2020 at 5:41 AM Duncan Murdoch > wrote: > > I agree it's all about call expressions, but they aren't all being > > treated equally: > > > > x |> f(...) > > > > expands to f(x, ...), while > > > > x |> `function`(...) > >

Re: [Rd] New pipe operator

2020-12-07 Thread Deepayan Sarkar
-Deepayan > On Mon, Dec 7, 2020 at 10:20 AM Deepayan Sarkar > wrote: > > > > On Mon, Dec 7, 2020 at 6:53 PM Gabor Grothendieck > > wrote: > > > > > > On Mon, Dec 7, 2020 at 5:41 AM Duncan Murdoch > > > wrote: > > > >

Re: [Rd] reshape documentation

2021-04-11 Thread Deepayan Sarkar
On Wed, Mar 17, 2021 at 7:55 PM Michael Dewey wrote: > > Comments in line > > On 13/03/2021 09:50, SOEIRO Thomas wrote: > > Dear list, > > > > I have some questions/suggestions about reshape. > > > > 1) I think a good amount of the popularity of base::reshape alternative is > > due to the complex

Re: [Rd] reshape documentation

2021-04-28 Thread Deepayan Sarkar
On Sat, Apr 17, 2021 at 7:07 PM SOEIRO Thomas wrote: > > Dear Deepayan, > > I do not have further suggestions, but I just wanted to thank you for taking > the time to > improve the documentation so much! (and for adding support for specifying > "varying" as > a vector) > > Both "Typical usage" a

Re: [Rd] Possible bug in help file name generation

2021-06-24 Thread Deepayan Sarkar
On Thu, Jun 24, 2021 at 5:31 PM Iñaki Ucar wrote: > > Hi, > > I noticed that R 4.1 places html files into the packages' help > directory, compared to previous versions, which used an RDS. I found a > possible bug in the code that processes the aliases from the Rd files > and generates the names fo

Re: [Rd] Bundling MathJax

2022-03-13 Thread Deepayan Sarkar
On Sun, Mar 13, 2022 at 6:18 PM Ivan Krylov wrote: > > Hello R-devel, > > I appreciate the efforts devoted towards improving equation typography > in HTML manuals. Since MathML lost its status as the way to express > mathematics on the web after its removal from Google Chrome in 2013, > MathJax an

Re: [Rd] running examples with enhanced help engine also requires mime package

2022-03-26 Thread Deepayan Sarkar
On Fri, Mar 25, 2022 at 9:48 PM Duncan Murdoch wrote: > > On 25/03/2022 12:07 p.m., Kevin Ushey wrote: > > Hi, > > > > The new enhanced help system is fantastic! I've been playing around > > with the enhanced help system introduced recently in R 4.2.0, and I > > noticed one minor issue. When attem

Re: [Rd] Not documenting a function and not getting a check error?

2023-01-05 Thread Deepayan Sarkar
On Fri, Jan 6, 2023 at 1:49 AM Duncan Murdoch wrote: > > I'm in the process of a fairly large overhaul of the exports from the > rgl package, with an aim of simplifying maintenance of the package. > During this work, I came across the reverse dependency geomorph that > calls the rgl.primitive func

Re: [Rd] Recycling in arithmetic operations involving zero-length vectors

2023-01-16 Thread Deepayan Sarkar
On Mon, Jan 16, 2023 at 7:28 PM Duncan Murdoch wrote: > > On 16/01/2023 6:55 a.m., David Winsemius wrote: > > > > > > Sent from my iPhone > > > >> On Jan 16, 2023, at 6:11 PM, Duncan Murdoch > >> wrote: > >> > >> On 16/01/2023 5:23 a.m., Roland Fuß wrote: > >>> Dear R-core, > >>> The language d

Re: [Rd] tab-complete for non-syntactic names could attempt backtick-wrapping

2023-03-02 Thread Deepayan Sarkar
On Thu, Mar 2, 2023 at 2:09 PM Ivan Krylov wrote: > > There turn out to be a few more things to fix. > > One problem is easy to solve: vapply() needs a third argument > specifying the type of the return value. (Can we have unit tests for > tab completion?) There are tests in src/library/utils/te

Re: [Rd] Autocompletion for the new S3 generic @ method?

2023-04-02 Thread Deepayan Sarkar
Thanks, we are discussing the details, but we will definitely add something along those lines before 4.3.0 is released. Best, -Deepayan On Sun, Apr 2, 2023 at 6:39 PM Tomasz Kalinowski wrote: > > I agree, this is a good idea and would be very helpful in interactive > contexts. > > I have a draf

Re: [Rd] Autocompletion for the new S3 generic @ method?

2023-04-06 Thread Deepayan Sarkar
This should be enabled now in R-devel and R 4.3.0 by writing .AtNames() methods. findMatches() is also exported now; this is basically grep(), but will do fuzzy matching if it's activated. Best, -Deepayan On Mon, Apr 3, 2023 at 9:37 AM Deepayan Sarkar wrote: > > Thanks, we are dis

Re: [Rd] data.frame weirdness

2023-11-14 Thread Deepayan Sarkar
They differ in whether the row names are "automatic": > .row_names_info(a1) [1] -3 > .row_names_info(a2) [1] 3 Best, -Deepayan On Tue, 14 Nov 2023 at 08:23, Gabor Grothendieck wrote: > > What is going on here? In the lines ending in the inputs and outputs > are identical yet one gives a w

Re: [Rd] data.frame weirdness

2023-11-14 Thread Deepayan Sarkar
different ways of storing row names that R tries to pretend should be exchangeable, but are not (and some code not having caught up). Part of the problem, I think, is that it's not clear what the ideal behaviour should be in such cases (to warn or not to warn). Best, -Deepayan > > identical(a1

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 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 > [1] 3 > >> m

Re: [Rd] Extending suggestion for stopifnot

2013-08-20 Thread Deepayan Sarkar
On Wed, Aug 21, 2013 at 12:11 AM, ivo welch 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 > anything. > > first, I think

Re: [Rd] Extending suggestion for stopifnot

2013-08-21 Thread Deepayan Sarkar
On Wed, Aug 21, 2013 at 3:30 AM, ivo welch 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. > given that we

Re: [Rd] Type annotations for R function parameters.

2013-08-30 Thread Deepayan Sarkar
On Fri, Aug 30, 2013 at 2:49 PM, Оботуров Артем wrote: > Hello. > > One of my clients asked if it would be possible to have an IDE which could > use type discovery for R functions to make flow-like construction of an R > program. Something like a LabView graphical composition of processing > eleme

Re: [Rd] legitimate use of :::

2014-05-13 Thread Deepayan Sarkar
uld be able to run those lines > from your package. > > If you do want access to the completion mechanism from a package, you should > write to its author (Deepayan Sarkar) and explain the kinds of things you > need to do. If you can convince him that giving you access is worth the &

Re: [Rd] [patch] Add support for editor function in edit.default

2014-09-08 Thread Deepayan Sarkar
On Sun, Aug 24, 2014 at 9:14 AM, Scott Kostyshak wrote: > On Tue, May 20, 2014 at 5:55 AM, Scott Kostyshak > wrote: >> Regarding the following extract of ?options: >> ‘editor’: a non-empty string, or a function that is called with a >> file path as argument. >> >> edit.default cur

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 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 still suggests it: > > cb@

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 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() > utils:::.

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 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] if(--as-cran)?

2012-09-04 Thread Deepayan Sarkar
On Wed, Sep 5, 2012 at 11:41 AM, Duncan Murdoch wrote: > On 12-09-04 8:19 PM, Kasper Daniel Hansen wrote: >> >> On Tue, Sep 4, 2012 at 6:02 PM, Duncan Murdoch >> wrote: >>> >>> On 04/09/2012 5:42 PM, Dirk Eddelbuettel wrote: On 4 September 2012 at 17:26, Duncan Murdoch wrote:

Re: [Rd] Question lattice SplomT

2012-09-24 Thread Deepayan Sarkar
On Mon, Sep 24, 2012 at 9:22 PM, Christian Hoffmann 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

Re: [Rd] Colour Schemes

2009-05-21 Thread Deepayan Sarkar
On 5/21/09, Barry Rowlingson wrote: > On Thu, May 21, 2009 at 2:18 PM, wrote: > > > Most of the plots where colour is typically used to signify a variable > > already do map colours to data values. Take a look at help pages for > > levelplot/contourplot/wireframe from the lattice package, an

Re: [Rd] Colour Schemes

2009-05-21 Thread Deepayan Sarkar
On Thu, May 21, 2009 at 10:53 AM, Barry Rowlingson wrote: > On Thu, May 21, 2009 at 5:29 PM, Deepayan Sarkar > wrote: > > [oops I didnt reply-to-all] > >> But you could specify an explicit 'at' vector specifying the color >> breakpoints: effecti

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

2009-07-02 Thread Deepayan Sarkar
On Mon, Jun 29, 2009 at 9:05 AM, hadley wickham 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 reorder.character

Re: [Rd] more special completions

2009-08-21 Thread Deepayan Sarkar
On 8/21/09, Romain Francois 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 completions, I was t

Re: [Rd] more special completions

2009-08-21 Thread Deepayan Sarkar
On 8/21/09, Vitalie S. wrote: > On Fri, 21 Aug 2009 11:21:03 +0200, Romain Francois > 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

Re: [Rd] more special completions

2009-08-21 Thread Deepayan Sarkar
On 8/21/09, Romain Francois wrote: > On 08/21/2009 06:59 PM, Deepayan Sarkar wrote: > > > > > On 8/21/09, Romain Francois > wrote: > > > > > Hi, > > > > > > Would it be possible to add the capability for functions to regis

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 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 <- function(..., at, con

Re: [Rd] Improved Function Information with Key

2009-10-08 Thread Deepayan Sarkar
On Wed, Oct 7, 2009 at 5:56 AM, Lee Kelvin wrote: > Hello, > > Pressing the 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 options, whereas > it shoul

Re: [Rd] Improved Function Information with Key

2009-10-08 Thread Deepayan Sarkar
type an open paren after a function name, which should be useful for you. -Deepayan > > Thanks, >     Lee Kelvin > > > 2009/10/8 Deepayan Sarkar >> >> On Wed, Oct 7, 2009 at 5:56 AM, Lee Kelvin wrote: >> > Hello, >> > >> > Pressing the key

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 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 http://old.nabble.com/Cannot-activate-chm-help-in-R-2.10-td26067423.html

Re: [Rd] Indexing bug?

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

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

2010-05-29 Thread Deepayan Sarkar
On Sat, May 29, 2010 at 4:21 AM, Romain Francois 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: > > setGeneric( ".DollarNames

Re: [Rd] Argument recycling in substring()

2010-06-04 Thread Deepayan Sarkar
2010/6/4 Martin Maechler : >> "HP" == Hervé Pagès >>     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> zero length". > >    H

Re: [Rd] cut takes long time

2010-06-16 Thread Deepayan Sarkar
On Wed, Jun 16, 2010 at 3:56 PM, Gabor Grothendieck 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 2.10.1 or "R versio

Re: [Rd] error in lattice formattedTicksAndLabels.Date (PR#9590)

2007-03-30 Thread Deepayan Sarkar
On 3/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Full_Name: James Szinger > Version: 2.4.1 > OS: linux and MacOS X > Submission from: (NULL) (128.165.24.206) Bugs in packages are supposed to go to package maintainers, not r-bugs. > I'm trying to plot some data from the past 12 months an

[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 R_

Re: [Rd] R callbacks

2007-04-03 Thread Deepayan Sarkar
On 4/3/07, Simon Urbanek <[EMAIL PROTECTED]> wrote: > On Apr 2, 2007, at 8:51 PM, Deepayan Sarkar wrote: > > > Hi, > > > > I'm trying to understand (mostly from the R-exts manual) how to use > > the callbacks declared in Rinterface.h. As a

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. > > >> > G

[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 als

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

2007-04-06 Thread Deepayan Sarkar
On 4/6/07, Byron Ellis <[EMAIL PROTECTED]> wrote: > It's come up for me when I do FFI stuff. For GUI stuff I usually just > want to suppress, but it's possible that you'd want to detect > visibility if you were to make the GUI more programmable. I usually > end up having to work around the whole bu

[Rd] small update required in R-lang

2007-04-07 Thread Deepayan Sarkar
The R-lang manual has this example which no longer holds (I couldn't think of a simple alternative): As it happens, @R{}'s parser is not perfectly invertible, nor is its deparser, as the following examples show @example > deparse(quote(c(1, 2))) [1] "c(1, 2)" > deparse(1:2) [1] "c(1, 2)" -Deepay

[Rd] Rf_PrintValue problem with methods::show

2007-04-07 Thread Deepayan Sarkar
Hi, I think this is a bug (even though I can't find documentation explicitly saying that it should work). Basically, Rf_PrintValue(obj) fails when 'obj' is an S4 object that should be printed using show() rather than print(). From the error message I'm guessing that the need to use show is detecte

[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 whe

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 __ [EM

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 d

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 a

[Rd] dendrogram definition

2007-04-20 Thread Deepayan Sarkar
Hi, I'm trying to create a "grob" representing a dendrogram object (for use as a legend with lattice), and I have a question regarding how a "dendrogram" should be interpreted. Are they by definition binary trees or can they in principle have more than two children? -Deepayan ___

Re: [Rd] dendrogram definition

2007-04-23 Thread Deepayan Sarkar
On 4/23/07, Friedrich Leisch <[EMAIL PROTECTED]> wrote: > >>>>> On Fri, 20 Apr 2007 14:46:33 -0700, > >>>>> Deepayan Sarkar (DS) wrote: > > > Hi, > > I'm trying to create a "grob" representing a dendrogram object (for &g

[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) > &g

[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. Fir

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 someth

[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_Che

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 w

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 ma

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

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 >

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 &g

Re: [Rd] Display list redraw incomplete

2007-05-10 Thread Deepayan Sarkar
On 5/10/07, Roger Peng <[EMAIL PROTECTED]> wrote: > Just to follow up with a few more details on this problem (which > persists on my PowerBook Mac but no where else). I ran a bisection > search on the sources and found that SVN revision 40634 introduces > this problem. This revision introduced q

[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

  1   2   >