Re: [R-pkg-devel] vignette with "Run Examples"

2023-12-11 Thread Deepayan Sarkar
On Tue, 12 Dec 2023 at 12:54, Sigbert Klinke wrote: > Hi, > > is it possible to get a button or link to run an example in a vignette > like we see for the examples in the R help? > Just to understand your expectations: The 'run examples' option only works within the "dynamic" R help system,

Re: [Rd] data.frame weirdness

2023-11-14 Thread Deepayan Sarkar
ifferent 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, a2) >

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

Re: [R-pkg-devel] Recent dev version of R CMD check fails when a package function named X also has a parameter named X

2023-10-30 Thread Deepayan Sarkar
On Mon, 30 Oct 2023 at 12:48, Markus Jochim wrote: > > Hi R people, > > I am the maintainer of the emuR package and I am having a problem with > recent versions of R CMD check. > > CRAN‘s r-devel test suites [1] have started to emit a NOTE about the > HTML version of the manual: > > > Version:

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 disc

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

Re: [Bioc-devel] S4 Methods Documentation Convention Triggers Warnings

2023-03-30 Thread Deepayan Sarkar
Hervé Pagès wrote: > > On 28/01/2023 19:42, Deepayan Sarkar wrote: > ... > > I'm open to suppressing the warning for \describe items (the warning > > is more important for \arguments). Let me know. > > Hi Deepayan, suppressing the warning for \describe would k

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

Re: [Bioc-devel] S4 Methods Documentation Convention Triggers Warnings

2023-01-28 Thread Deepayan Sarkar
On Fri, Jan 27, 2023 at 9:26 PM Hervé Pagès wrote: > > On 27/01/2023 02:00, Dario Strbenac via Bioc-devel wrote: > > > Good day, > > > > So, is the ultimate solution to manually change everything to the format of > > > > \item{\code{show(x)}:}{ > >... > > } ? > > I think I will do this in my

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

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

Re: [Bioc-devel] S4 Methods Documentation Convention Triggers Warnings

2022-11-28 Thread Deepayan Sarkar
On Sun, Nov 27, 2022 at 12:30 PM Dario Strbenac via Bioc-devel < bioc-devel@r-project.org> wrote: > Good day, > > For a long time, it has been a convention to document S4 methods in the > format: > > \section{Displaying}{ > In the code snippets below, \code{x} is a GRanges object. >

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

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

Re: [R-pkg-devel] Is there a better way ...?

2021-10-21 Thread Deepayan Sarkar
On Thu, Oct 21, 2021 at 12:15 PM Rolf Turner wrote: > > > On Thu, 21 Oct 2021 02:03:41 -0400 > Duncan Murdoch wrote: > > > On 21/10/2021 12:40 a.m., Andrew Simmons wrote: > > > I think the simplest answer is to store the variable in the > > > functions frame. I'm assuming here that the only

Re: [R-pkg-devel] Is there a better way ...?

2021-10-20 Thread Deepayan Sarkar
On Thu, Oct 21, 2021 at 9:59 AM Rolf Turner wrote: > > > I have a plot method (say plot.foo()) that I want to be able to call so > that if argument "add" is set equal to TRUE, then further structure will > be added to the same plot. This is to be used *only* in the context in > which the plot

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

Re: [R-pkg-devel] Redirect error in .Rd file

2021-05-26 Thread Deepayan Sarkar
On Wed, May 26, 2021 at 2:23 AM Lenth, Russell V wrote: > > Hello package developers, > > I just upgraded to R version 4.1.0, and now get a new error when I re-build > my package. Among the messages about converting help files, I now get: > > ... > update.emmGrid

Re: [Bioc-devel] Rd warnings in Windows bioc-devel check

2021-05-01 Thread Deepayan Sarkar
This has been fixed in R, and should go away once the binaries have caught up. See https://bugs.r-project.org/bugzilla/show_bug.cgi?id=18090 Best, Deepayan On Sat, May 1, 2021, 4:44 PM Benjamin Jean-Marie Tremblay < benjamin.tremb...@uwaterloo.ca> wrote: > Dear Bioc-devel, > > For a little

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"

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

Re: [Rd] New pipe operator

2020-12-07 Thread Deepayan Sarkar
; 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: > > > > I agree it's al

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

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 =

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: > >

Re: [Rd] Possible documentation problem/bug?

2020-05-01 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

Re: [Rd] inappropriate warning in latticeExtra

2019-12-06 Thread Deepayan Sarkar
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 > wrote

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

Re: [Rd] apply with zero-row matrix

2018-07-31 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

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

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

2017-05-12 Thread Deepayan Sarkar
t avoid setting $call inside every method. -Deepayan > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > On Thu, May 11, 2017 at 1:09 AM, Deepayan Sarkar <deepayan.sar...@gmail.com> > wrote: >> >> On Wed, May 10, 2017 at 2:36 AM, William Dunlap via R-devel &g

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

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

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

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

2014-09-09 Thread Deepayan Sarkar
On Sun, Aug 24, 2014 at 9:14 AM, Scott Kostyshak skost...@princeton.edu wrote: On Tue, May 20, 2014 at 5:55 AM, Scott Kostyshak skost...@princeton.edu wrote: Regarding the following extract of ?options: ‘editor’: a non-empty string, or a function that is called with a file

Re: [Rd] legitimate use of :::

2014-05-14 Thread Deepayan Sarkar
for the package, so test some typical completion attempts is a description of the tests that follow, it's not a suggestion that you should 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

Re: [Bioc-devel] tab completion for library()

2013-11-14 Thread Deepayan Sarkar
, 2013 at 8:43 AM, Deepayan Sarkar deepayan.sar...@gmail.comwrote: On Wed, Nov 13, 2013 at 10:06 PM, Tim Triche, Jr. tim.tri...@gmail.com wrote: How hard would this be to set up (e.g. using a mechanism like AnnotationHub's)? I'm really lazy and wondering if the time spent writing a little

Re: [Bioc-devel] tab completion for library()

2013-11-13 Thread Deepayan Sarkar
On Wed, Nov 13, 2013 at 10:06 PM, Tim Triche, Jr. tim.tri...@gmail.com wrote: How hard would this be to set up (e.g. using a mechanism like AnnotationHub's)? I'm really lazy and wondering if the time spent writing a little package might be recovered when I want to load a BSgenome or SNPlocs

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

2013-08-30 Thread Deepayan Sarkar
On Fri, Aug 30, 2013 at 2:49 PM, Оботуров Артем obotu...@gmail.com 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

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] 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] '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] 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] 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] [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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] [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] 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] 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] Buggy trellis.focus() with xyplot ?

2008-11-19 Thread Deepayan Sarkar
On Wed, Nov 19, 2008 at 8:55 AM, Daniel Kornhauser [EMAIL PROTECTED] wrote: Hi: (Tried to find a bug report about this issue, but was unable to find it, let me know if this is a known issue) I have been working on an interface to highlight xyplot panels on mouse overs in JavaGD but I have

Re: [Rd] Buggy trellis.focus() with xyplot ?

2008-11-19 Thread Deepayan Sarkar
On 11/19/08, Daniel Kornhauser [EMAIL PROTECTED] wrote: Thanks a lot for taking this on guys ! Some more background in case you are interested: I have almost a working version of focus for selecting a panel with mouse over in a stanalone Java application using an REngine I only have two

[Rd] Fw: alpha transparency crashes R

2008-11-16 Thread Deepayan Sarkar
also note that it may be somehow related to grid, as the following code (supplied by Deepayan Sarkar) using base graphics does not crash R, even with n=10... pdf() n = 1000 plot(rnorm(n), rnorm(n), col = rgb(0, 0, 0, alpha = runif(n)), pch = 16) dev.off() The error trace from the above

[Rd] Emacs tags for R code

2008-11-02 Thread Deepayan Sarkar
Hi, I have put up details of a new tool for tagging R code at http://dsarkar.fhcrc.org/rtags/rtags.html that Emacs/ESS users may be interested in. It should be possible to extend this for other editors as well. Comments and feedback welcome. -Deepayan

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

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] 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-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] 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] 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] 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] 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] 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] 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] 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] 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] 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

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

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] 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

[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

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

  1   2   >