Re: [Rd] Thin spaces

2008-10-12 Thread hadley wickham
On Sun, Oct 12, 2008 at 1:01 AM, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > On Sat, 11 Oct 2008, hadley wickham wrote: > >> Hi all, >> >> I'm looking at providing some nicer number formatting features for >> axes in ggplot2. One thing I would lik

[Rd] Thin spaces

2008-10-11 Thread hadley wickham
Hi all, I'm looking at providing some nicer number formatting features for axes in ggplot2. One thing I would like to do is use thin spaces to separate digits, like you can in latex. I realise I can use unicode spaces to do this (e.g. http://www.cs.tut.fi/~jkorpela/chars/spaces.html), but what a

Re: [Rd] problem with cut.Date/date plotting in ggplot2

2008-10-11 Thread hadley wickham
Hi Ben, I think is a bug with cut.Date. I reported a similar bug (with days) a couple of weeks ago but no one responded. Hadley On Fri, Oct 10, 2008 at 9:15 PM, Ben Bolker <[EMAIL PROTECTED]> wrote: > > I've hit a problem in ggplot2 which I can trace back to cut.Date , > which is either a bug

Re: [Rd] why is \alias{anRpackage} not mandatory?

2008-10-07 Thread hadley wickham
> I don't agree with this. Back in 2001 when this was first proposed it might > have worked, but there's far too much inertia now to make a big change. > Weren't you the one who objected to a requirement for a foo-package help > topic? How would you like to rewrite all the help files for all of

Re: [Rd] why is \alias{anRpackage} not mandatory?

2008-10-07 Thread hadley wickham
> This shows up in the HTML help system. It would be better if it showed up > in all help formats, but there are other ways to do that, e.g. creating an > Rd help page pointing to those files. Or you can just link to them from your website. I don't think you'd argue with the statement that there

Re: [Rd] why is \alias{anRpackage} not mandatory?

2008-10-06 Thread hadley wickham
>> It may not be much work for you, but I find any additional >> requirements to the package format to be a real pain. I have ~10 >> packages on CRAN and having to go through and add this extra >> information all at once is a big hassle. R releases tend to happen in >> the middle of the US academ

Re: [Rd] why is \alias{anRpackage} not mandatory?

2008-10-06 Thread hadley wickham
> You are right, .Rd has its limitations, but as you say, there is nothing > better available in the moment. (BTW: I heard rumours at useR! about > discussions on a meta documentation format? Is there any public information > about this??) What do you mean by meta documentation format? Do you mea

Re: [Rd] why is \alias{anRpackage} not mandatory?

2008-10-06 Thread hadley wickham
>> - there are lots of packages without one, so this would create a lot of >> work for people to add them. > > No, I don't think that this is too much work. Positively speaking, it's one > small contribution to bring more light into the exponentially growing > haystack. It may not be much work for

Re: [Rd] R CMD install runs out of memory

2008-10-03 Thread hadley wickham
On Fri, Oct 3, 2008 at 10:12 AM, Uwe Ligges <[EMAIL PROTECTED]> wrote: > > > Duncan Murdoch wrote: >> >> On 10/3/2008 10:14 AM, hadley wickham wrote: >>> >>> $ R CMD install ggplot2 >>> ... >>> scale-usage-d1te

[Rd] R CMD install runs out of memory

2008-10-03 Thread hadley wickham
$ R CMD install ggplot2 ... scale-usage-d1texthtmllatex scale_brewer texthtmllatex example perl(90227) malloc: *** mmap(size=31488) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break t

Re: [Rd] R --interactive and readline() creates infinite loop

2008-09-25 Thread hadley wickham
> I assume, given this outcome, that this is not the intended use of > --interactive, but I still wonder if there is any way to achieve an > interactive session based on a predefined set of commands without writing a > completely new front-end (overkill, surely?). When you say an interactive sessi

Re: [Rd] Cross-platform function availability

2008-09-15 Thread hadley wickham
On Mon, Sep 15, 2008 at 12:06 PM, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 9/15/2008 11:42 AM, hadley wickham wrote: >> >> Hi all, >> >> Is there any way to determine which functions are available on which >> platforms? For example, winProgr ess

[Rd] Cross-platform function availability

2008-09-15 Thread hadley wickham
Hi all, Is there any way to determine which functions are available on which platforms? For example, winProgr essBar (and related functions) are only available on Windows, but what about tkProgressBar and txtProgressBar? Is there any way to figure out which functions are only available on certai

[Rd] Bug in cut.Dates with single date and day breaks

2008-09-11 Thread hadley wickham
> cut(as.Date("2008-09-12"), "days") Error in 1:(1 + max(which(breaks < maxx))) : result would be too long a vector In addition: Warning message: In max(which(breaks < maxx)) : no non-missing arguments to max; returning -Inf > cut(as.Date("2008-09-12"), "weeks") [1] 2008-09-08 Levels: 2008-09-0

Re: [Rd] package "signal", function "filter" (PR#12752)

2008-09-09 Thread hadley wickham
On Tue, Sep 9, 2008 at 2:30 AM, <[EMAIL PROTECTED]> wrote: > Package 'signal' is not the responsibility of the R developers, so you > need to follow the FAQ and report this to the maintainer, rather than > clog up R-bgs with an inappopriate report. > > You might find that R's own function filter()

Re: [Rd] lapply(NULL, ...) returns empty list

2008-09-04 Thread hadley wickham
On Thu, Sep 4, 2008 at 4:01 PM, Vadim Organovich <[EMAIL PROTECTED]> wrote: > Dear R-devel, > > Is there a reason that lapply(NULL, ...) returns the empty list, rather than > NULL? It seems intuitive to expect the latter, and rather counterintuitive > that lapply(list(), ... ) returns the same va

Re: [Rd] [R] embedded examples

2008-08-26 Thread hadley wickham
You might also want to look at existing visualisation applications that connect with R: * http://ggobi.org * http://rosuda.org/mondrian * http://rosuda.org/software/Gauguin/gauguin.html to name a few. Hadley On Tue, Aug 26, 2008 at 10:31 AM, EBo <[EMAIL PROTECTED]> wrote: > > I am working on

Re: [Rd] Posting Guide

2008-06-07 Thread hadley wickham
Here's my attempt at making a little more friendly: Removed self-contained - implied by reproducible Used slightly less formal language (and you instead of the questioner) Fixed a couple of spelling mistakes Removed references to testing framework - I don't think that that term needs to be introdu

Re: [Rd] R CMD check: small tests suggestion

2008-05-04 Thread hadley wickham
> > It would be nice if R CMD check ran any file in the tests directory > > that has "one of the extensions .R, .S, .q, .r, or .s" - i.e. it > > should match the files processed in the R directory. > > > > Whereas what it is documented in 'Writing R Extensions' is to use .R or > .Rin files. This

[Rd] R CMD check: small tests suggestion

2008-05-03 Thread hadley wickham
It would be nice if R CMD check ran any file in the tests directory that has "one of the extensions .R, .S, .q, .r, or .s" - i.e. it should match the files processed in the R directory. Hadley -- http://had.co.nz/ __ R-devel@r-project.org mailing list

Re: [Rd] Out of bounds negative index

2008-05-02 Thread hadley wickham
On Fri, May 2, 2008 at 2:23 PM, Vincent Goulet <[EMAIL PROTECTED]> wrote: > Hi, > > From the R Language Definition, Section 3.4.1: > > "If i is positive and exceeds length(x) then the corresponding selection is > NA. A negative out of bounds value for i causes an error." > > (This is also mentio

[Rd] all.equal, classes, and order of arguments

2008-05-01 Thread hadley wickham
> a <- list() > b <- structure(list(), class=c("list", "a")) > all.equal(a, b) [1] "Attributes: < target is NULL, current is list >" > all.equal(b, a) [1] "Attributes: < Modes: list, NULL >" [2] "Attributes: < names for target but not for current >" [3] "Attributes: < Length mismatch: comparison on

Re: [Rd] Quotation marks (PR#11353)

2008-04-30 Thread hadley wickham
> > Single (') and double (") quotation marks are not being read as quotation > marks > when commands are copied from Word; they produce an error message whenever > they > are used. To correct this, one has to retype everything in the R console. I > tried using courier new, as well as the goo

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

2008-04-25 Thread hadley wickham
> It seems logical to me that such a resource be embedded up front in "Intro" > with it also being included within the existing help system and referenced > in the start up banner message. That would help if anyone actually read the startup banner. The next time you're in front of an audience of

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

2008-04-25 Thread hadley wickham
> Consistent with this idea would be something like the "I feel lucky" search > on Google, i.e. ?foo would go immediately to the best match, while ??foo > would present a list of possible matches. This is not consistent with > current behaviour, where ?foo will present a list if it matches two or

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

2008-04-25 Thread hadley wickham
> I would rather see that be one of the dyadic forms, say > >site?foo > > or >all?foo I'd be interested to know how many R users are aware of the dyadic form - I suspect it's very very few. Hadley -- http://had.co.nz/ __ R-devel@r-projec

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

2008-04-25 Thread hadley wickham
On Fri, Apr 25, 2008 at 7:46 AM, Peter Dalgaard <[EMAIL PROTECTED]> wrote: > Duncan Murdoch wrote: > > I haven't done it, but I suspect we could introduce special behaviour > > for ??foo very easily. We could even have a whole hierarchy: > > > > ?foo, ??foo, ???foo, foo, ... > > > > > H

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

2008-04-25 Thread hadley wickham
> > But that's just a problem with the current implementation. Better > > indexing could make full text search of all documentation practical > > instantaneous. This is one argument for a centralised documentation > > web site - such indices are much easier to set up in a modern web > > developme

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

2008-04-24 Thread hadley wickham
> I am not convinced that ?foo should do this however. help("foo") > conceptually seems predicated upon the notion that a user is looking for > a reference/help page for a specific function or descriptor called > 'foo'. The user knows the name of the function or descriptor and should > not hav

Re: [Rd] HOW TO AVOID LOOPS

2008-04-12 Thread hadley wickham
On Sat, Apr 12, 2008 at 11:47 AM, carlos martinez <[EMAIL PROTECTED]> wrote: > > Looking for a simple, effective a minimum execution time solution. > > > > For a vector as: > > > > c(0,0,1,0,1,1,1,0,0,1,1,0,1,0,1,1,1,1,1,1) > > > To transform it to the following vector without using any loops

Re: [Rd] R CMD check should check date in description

2008-04-04 Thread hadley wickham
> > To clarify, do you mean you have decided not to provide a date field > > in the DESCRIPTION file? If so, would you mind elaborating why? > > > > Sure: The date of what? That's a good question. Another possible solution would be to remove (or down-weight the importance of) the date field, a

Re: [Rd] R CMD check should check date in description

2008-04-04 Thread hadley wickham
> Please no. If people want one then they should add it manually. It is > optional, and some of us have explicitly opted out and would like to > continue to do so. To clarify, do you mean you have decided not to provide a date field in the DESCRIPTION file? If so, would you mind elaborating wh

Re: [Rd] R CMD check should check date in description

2008-04-04 Thread hadley wickham
> I recently thought about this. I see several issues. > > * How can we determine if it is "old"? Relative to the time when the > package was uploaded to a repository? > > * Some developers might actually want a different date for a variety of > reasons ... > > * What we currently say in

[Rd] R CMD check should check date in description

2008-04-04 Thread hadley wickham
I'm always forgetting to update the date in DESCRIPTION. Would it be possible to add a warning to R CMD check if it's old? Hadley -- http://had.co.nz/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] __FILE__ for R

2008-04-04 Thread hadley wickham
Sorry, that should be: FILE <- (function() { attr(body(sys.function()), "srcfile") })()$filename Hadley On Fri, Apr 4, 2008 at 10:34 AM, hadley wickham <[EMAIL PROTECTED]> wrote: > I've often missed the ability to get the directory of the currently > runni

[Rd] __FILE__ for R

2008-04-04 Thread hadley wickham
I've often missed the ability to get the directory of the currently running script. It's actually been possible for a while: FILE <- (function() { attr(body(sys.function()), "srcfile") })() thanks to Duncan's recent changes to file parsing. This is pretty useful for sourcing in files relative

Re: [Rd] idea for GSoC: an R package for fitting Bayesian Hierarchical Models

2008-03-24 Thread hadley wickham
> Ya. But speeds are rather different. > I admittely missed a comparison with Umacs in my short demo. > However, from some early experiments (I'm doing while I'm writing), as > I suspected, my approach results being many times faster than Umacs, > even if one doesn't specify samplers as C code

Re: [Rd] Roxygen

2008-03-21 Thread hadley wickham
On Fri, Mar 21, 2008 at 11:36 AM, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 21/03/2008 2:09 AM, Peter Danenberg wrote: > >> No, we want a solution in R. > > > > Would it suffice, by the way, to source() a file and introspect upon > > its objects with ls(), formals(), typeof(), mode(), and

Re: [Rd] Roxygen

2008-03-19 Thread hadley wickham
On Wed, Mar 19, 2008 at 4:15 PM, Peter Danenberg <[EMAIL PROTECTED]> wrote: > > You should probably also survey existing attempts - I have written > > something with ruby that suggest some ideas. > > Fascinating, Hadley; do you have a link to the source, by any chance? It's completely local. I'

Re: [Rd] Roxygen

2008-03-18 Thread hadley wickham
On Mon, Mar 17, 2008 at 11:56 PM, Peter Danenberg <[EMAIL PROTECTED]> wrote: > Is this the appropriate place for GSoC conversations? > > If I understand the proposal correctly, there should be a lexer > (written in R) that exposes an API; that API would be used by > segregated mini-parsers (Rocl

Re: [Rd] graphics defaults

2008-03-13 Thread hadley wickham
>Can someone point me to a justification for the design > decisions, which seem to be similar in lattice and > ggplot2, of (1) gray backgrounds and (2) filled points? > [I seem to remember seeing somewhere the opposite recommendation > for points, i.e. that open points make it much easier t

Re: [Rd] [patch] add=TRUE in plot.default()

2008-03-09 Thread hadley wickham
> > But what about when the new data is outside the range of the current > > plot? > > plot/lines/points already works that way so this is just an interface issue. That may be the way it is, but I don't see how you could argue that it's desirable behaviour. Hadley -- http://had.co.nz/

Re: [Rd] [patch] add=TRUE in plot.default()

2008-03-09 Thread hadley wickham
> Yes. The ability to plot things on top of each other is important. > The simplicity created by having a single interface for adding to plots > outweighs the complexity of yet another parameter. > > The add parameter only interacts with other parameters superficially -- > some parameters of

Re: [Rd] merging environments

2008-03-07 Thread hadley wickham
2008/3/7 Ben Bolker <[EMAIL PROTECTED]>: > >Despite the spirited arguments of various R-core folks > who feel that mle() doesn't need a "data" argument, and > that users would be better off learning to deal with function > closures, I am *still* trying to make such things work > in a reason

Re: [Rd] Aliasing a function

2008-02-26 Thread hadley wickham
, c="f") > > names(ff) <- argtrans > > g2 <- as.function(c(ff, as.call(c(list(as.name("f")), > lapply(argtrans, as.name) > > g2 > function (d, e, f) > f(a = d, b = e, c = f) > > f(1,2,3) > a b c > 1 2 3 > > g1(

Re: [Rd] Aliasing a function

2008-02-23 Thread hadley wickham
On Sat, Feb 23, 2008 at 5:52 PM, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > I assume he wants to be able to change the > formals although its confusing since the example > uses the same formals in both cases. Yes, that was an important point that I forgot to mention! Thanks for the pointer

[Rd] Aliasing a function

2008-02-23 Thread hadley wickham
A simple way to alias a function is to do : g <- function(a = 1, b = 2, c = 3) a + b * c f <- function(...) g(...) but formals (etc) is no longer very helpful. Is there an easy way to programmatically create: f <- function(a=1, b=2, c=3) g(a=a, b=b, c=c) This comes up in ggplot2 where I alias

Re: [Rd] 0.45<0.45 = TRUE (PR#10744)

2008-02-12 Thread hadley wickham
> I'm thinking (by now quite strongly) that there is a place > in "Introduction to R" (and maybe other basic documentation) > for an account of arithmetic precision in R (and in digital > computation generally). > > A section "Arithmetic Precision in R" near the beginning > would alert people to th

Re: [Rd] a != a*1 != a+0 != +a

2008-02-04 Thread hadley wickham
> One issue is the behaviour of unary operators "+" and "-". > > If trim is TRUE, then "a" is one thing, but "+a" returns > "trim(a)", which might be different. > > Also "1*a" would be different from "a" and "a+0" I think this is ok. In the ggplot2 package I use + to join together multiple p

Re: [Rd] A "safe" do.call

2008-01-30 Thread hadley wickham
> hw> That seems a perfectly good reason not to use ... - but > hw> if you are going to use ... it seems like you shouldn't > hw> warn on mismatched argument names. > > I disagree. > > One "famous" example on this was -- in S-plus, early 1990s -- > known about S users back then, and it

Re: [Rd] A "safe" do.call

2008-01-29 Thread hadley wickham
> > Or is this a bug in glm? It certainly seems that the documentation > > should mention that ... is passed to glm.control, which only takes > > three arguments. I realise that this doesn't come up very often > > during an interactive model fitting session, and it is easy to remedy > > when it d

Re: [Rd] A "safe" do.call

2008-01-28 Thread hadley wickham
ct have a fixed argument list. Hadley On Jan 28, 2008 8:19 PM, hadley wickham <[EMAIL PROTECTED]> wrote: > Has anyone developed a version of do.call that is safe in the sense > that it silently drops parameters that do not appear in the formals of > the called function? This is useful

[Rd] A "safe" do.call

2008-01-28 Thread hadley wickham
Has anyone developed a version of do.call that is safe in the sense that it silently drops parameters that do not appear in the formals of the called function? This is useful when ... ends up being used in multiple further functions. e.g. f <- function(a, b) {a + b} do.call(f, list(a=1, b=2, c=3)

Re: [Rd] seekViewport error

2008-01-23 Thread hadley wickham
> The problem (see also > https://stat.ethz.ch/pipermail/r-help/2008-January/151655.html) is that > cellGrobs (children of frame grobs) use their 'vp' component to store > the viewport that positions them within the parent frame. This means > that the viewport is pushed and then popped (as per nor

Re: [Rd] checking whether the name space can be loaded with stated dependencies

2008-01-08 Thread hadley wickham
On Jan 8, 2008 1:31 AM, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > Hadley sent me the package, and my guess *was* correct. The package is > not using lazy-loading, and early on it has (in aaa-top-level.r) > > TopLevel <- proto(expr = { > ... > > That is 'a top-level computation'. To make this

Re: [Rd] Unicode whitespace

2008-01-05 Thread hadley wickham
On Jan 5, 2008 1:40 AM, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > I presume you want this only in a UTF-8 locale? Yes, although my assumption is that this will become an increasing common locale as time goes by. > Currently this is done by > > static int SkipSpace(void) > { > int c; >

Re: [Rd] checking whether the name space can be loaded with stated dependencies

2008-01-04 Thread hadley wickham
On 1/4/08, Henrik Bengtsson <[EMAIL PROTECTED]> wrote: > On 04/01/2008, hadley wickham <[EMAIL PROTECTED]> wrote: > > On 1/4/08, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > > > What it is trying is > > > > > > % env R_DEFAUL

[Rd] Unicode whitespace

2008-01-04 Thread hadley wickham
It would be nice if R ignored more unicode white space characters. For example, if I have "\u2028" in a command (which I get from a line-break in keynote) I get the following error: > qplot(carat, price, data = diamonds, 
 colour=clarity) Error: unexpected input in "qplot(carat, price, data = di

Re: [Rd] checking whether the name space can be loaded with stated dependencies

2008-01-04 Thread hadley wickham
On 1/4/08, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > What it is trying is > > % env R_DEFAULT_PACKAGES=NULL R > > > loadNamespace("ggplot2") > > The test is not new, so it would seem to be a change in ggplot2 since the > version on CRAN. My guess is the your package is doing top-level > compu

[Rd] checking whether the name space can be loaded with stated dependencies

2008-01-03 Thread hadley wickham
Can any one provide more details on this error that I'm getting from R CMD check: * checking whether the name space can be loaded with stated dependencies ... WARNING Error in eval(expr, envir, enclos) : could not find function "proto" Error: unable to load R code in package 'ggplot2' Execution ha

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

2007-12-18 Thread hadley wickham
> > pkgs <- > > as.data.frame(available.packages(contrib.url("http://cran.r-project.org";))) > > pkgs[c("sn", "GOSim", "GammaTest"), c("Package", "Version")] > Package Version > sn sn 0.4-4 > GOSim GOSim 1.1.2 > NA > > which match CRAN (which doesn't have GammaTest).

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

2007-12-18 Thread hadley wickham
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&quo

[Rd] available.packages() not accurate?

2007-12-18 Thread hadley wickham
> 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? Thanks, Hadley -- http://had.co.nz/ ___

Re: [Rd] Building packages

2007-12-07 Thread hadley wickham
On 12/7/07, Barry Rowlingson <[EMAIL PROTECTED]> wrote: > Gabor Grothendieck wrote: > > An svn checkout directory can contain a mix of files that > > are mirrored in the svn and not mirrored. In particular, if you > > add a new file into your checkout directory it will not automatically > > go int

Re: [Rd] Saving Graphics File as .ps or .pdf (PR#10403)

2007-11-06 Thread hadley wickham
> (Ideally, people would try the prerelease versions and problems like > this would be caught before the actual release, but it seems that they > prefer treating x.y.0 as a beta release...) The one time I did do this and complained about a change (trailing commas now throw an error), no one respon

Re: [Rd] RSQLite indexing

2007-10-22 Thread hadley wickham
On 10/22/07, Thomas Lumley <[EMAIL PROTECTED]> wrote: > > I am trying to use RSQLite for storing data and I need to create indexes on > two variables in the table. It appears from searching the web that the CREATE > INDEX operation in SQLite is relatively slow for large files, and this has > been

[Rd] Underlying representation for rownames

2007-10-18 Thread hadley wickham
Is it possible to get at the underlying representation of row names - ie. what you see in the output from dput: > df <- data.frame(1:4) > dput(df) structure(list(X1.4 = 1:4), .Names = "X1.4", row.names = c(NA, -4L), class = "data.frame") I would like to be able to tell if a data frame has the def

Re: [Rd] Fwd: Digest package - make digest generic?

2007-10-16 Thread hadley wickham
On 10/16/07, Roger Peng <[EMAIL PROTECTED]> wrote: > My understanding was that Hadley wanted 'digest' to operate on part of > an object rather than on the entire, which might contain uninteresting > or irrelevant details. For example, if we had > > a <- structure(list(x = 1, y = 2), class = "foo")

Re: [Rd] Digest package - make digest generic?

2007-10-15 Thread hadley wickham
On 10/15/07, Henrik Bengtsson <[EMAIL PROTECTED]> wrote: > [As agreed, CC:ing r-devel since others might be interested in this as well.] > > Hi. > > On 10/15/07, Dirk Eddelbuettel <[EMAIL PROTECTED]> wrote: > > > > Hi Hadley, > > > > On 15 Octob

Re: [Rd] boxplot() confuses x- and y-axes (PR#10345)

2007-10-15 Thread hadley wickham
> So given the help file, we should consider dropping the whole > ``along the boxplot'' idea? > > {{well, yes, we should drop "traditional graphics" and work with > grid-based graphical objects ("grob"s) that can be drawn > vertically or horizontally, > e.g., in lattice or (most probably) ggp

Re: [Rd] rggobi not in bin/macosx/universal/contrib/2.6/PACKAGES on CRAN

2007-09-26 Thread hadley wickham
On 9/26/07, Herve Pages <[EMAIL PROTECTED]> wrote: > Hi Simon, > > Simon Urbanek wrote: > > Actually, the fact that the tar ball is there must be a mirroring > > problem, because it's not on the master CRAN server. You should fix your > > mirror - objects may appear closer ... ;) > > Yesterday, bef

Re: [Rd] rggobi not in bin/macosx/universal/contrib/2.6/PACKAGES on CRAN

2007-09-25 Thread hadley wickham
On 9/25/07, Simon Urbanek <[EMAIL PROTECTED]> wrote: > > On Sep 25, 2007, at 4:33 PM, hadley wickham wrote: > > > On 9/25/07, Simon Urbanek <[EMAIL PROTECTED]> wrote: > >> > >> On Sep 25, 2007, at 12:58 PM, Herve Pages wrote: > >> > &g

Re: [Rd] rggobi not in bin/macosx/universal/contrib/2.6/PACKAGES on CRAN

2007-09-25 Thread hadley wickham
On 9/25/07, Simon Urbanek <[EMAIL PROTECTED]> wrote: > > On Sep 25, 2007, at 12:58 PM, Herve Pages wrote: > > > Hi, > > > > R-2.6 + install.packages() doesn't find rggobi on Mac OS X. > > The .tgz file is here: > > > > http://cran.fhcrc.org/bin/macosx/universal/contrib/2.6/ > > > > but it is not

Re: [Rd] Date vs date

2007-09-14 Thread hadley wickham
> > 3. temp <- as.Date('1990/1/1') - as.date('1953/2/5') > > sqrt(temp) > > Error in Math.difftime(temp3) : sqrtnot defined for "difftime" objects > > > > Minor bug: no space before the word 'not' > > Major: this shouldn't fail. > > > > > Arguably, it should (Is this a difftime obje

[Rd] Installing dependent packages

2007-08-19 Thread hadley wickham
Hi all, When installing ggplot2 on with install.packages("ggplot2", dep = T), the colorspace dependency doesn't get installed (see below for transcript from R session). The relevant lines from my description file are: Depends: R (>= 2.4), grid, reshape (>= 0.8.0), proto, splines, MASS, RColorBre

Re: [Rd] Advice on parsing / overriding function calls

2007-08-16 Thread hadley wickham
What are you trying to defend against? A serious attacker could still use rm/assign/get/eval/... to circumvent your replaced functions. I think it would be very difficult (if not impossible) to prevent this from happening), especially if the user can load packages. Hadley On 8/16/07, Michael Ca

Re: [Rd] Optimization in R

2007-08-07 Thread hadley wickham
On 8/7/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > Those are small parts of the calculation, not the whole thing. The > original point was that optim() is a very thin wrapper around the code > to do the optimization. I just don't see a need to make it more > complicated so it can be used to w

Re: [Rd] Optimization in R

2007-08-06 Thread hadley wickham
On 8/4/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 04/08/2007 2:53 PM, Gabor Grothendieck wrote: > > The example of generic functions. > > Show me an example where we have a list of ways to do a calculation > passed as an argument (analogous to the method argument of optim), where > the user

Re: [Rd] Cross-platform check for internet connection

2007-06-22 Thread hadley wickham
On 6/22/07, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > On Fri, 22 Jun 2007, hadley wickham wrote: > > > What's the recommended way to check if an internet connection is > > available across platforms? I was using is.null(nsl()) but this does > > not work on

[Rd] Cross-platform check for internet connection

2007-06-22 Thread hadley wickham
What's the recommended way to check if an internet connection is available across platforms? I was using is.null(nsl()) but this does not work on windows. Thanks, Hadley __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-dev

Re: [Rd] R 2.5.0 refuses to print enough digits to recover exact floating point values

2007-05-23 Thread hadley wickham
> I think this is a bug in the MacOS X runtime. I've checked the C99 > standard, and can see no limits on the precision that you should be able > to specify to printf. That seems quite possible - it's interesting that increasing the number of digits (ie 1e7 vs 1e6) doesn't crash, but takes up abo

Re: [Rd] relist, an inverse operator to unlist

2007-05-23 Thread hadley wickham
On 5/23/07, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > On 5/23/07, Martin Maechler <[EMAIL PROTECTED]> wrote: > > > "GaGr" == Gabor Grothendieck <[EMAIL PROTECTED]> > > > on Wed, 23 May 2007 08:56:50 -0400 writes: > > > >GaGr> On 5/23/07, Seth Falcon <[EMAIL PROTECTED]> wrote:

Re: [Rd] R 2.5.0 refuses to print enough digits to recover exact floating point values

2007-05-23 Thread hadley wickham
On 5/23/07, hadley wickham <[EMAIL PROTECTED]> wrote: > On 5/22/07, Uwe Ligges <[EMAIL PROTECTED]> wrote: > > > > > > Zack Weinberg wrote: > > > I have noticed that in R 2.5.0, no method of textual output will print > > > a "double&q

Re: [Rd] R 2.5.0 refuses to print enough digits to recover exact floating point values

2007-05-23 Thread hadley wickham
On 5/22/07, Uwe Ligges <[EMAIL PROTECTED]> wrote: > > > Zack Weinberg wrote: > > I have noticed that in R 2.5.0, no method of textual output will print > > a "double" mode quantity with more than 15 digits after the decimal > > point. From the help page (?print.default) it appears that this is > >

Re: [Rd] RFC: allow packages to advertise vignettes on Windows

2007-05-18 Thread hadley wickham
> On 5/18/2007 11:11 AM, hadley wickham wrote: > > On 5/18/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > >> I think we've agreed about adding an option to the vignette() function > >> to allow the user to choose to see all vignettes in installed packages

Re: [Rd] RFC: allow packages to advertise vignettes on Windows

2007-05-18 Thread hadley wickham
On 5/18/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > I think we've agreed about adding an option to the vignette() function > to allow the user to choose to see all vignettes in installed packages, > or only those that are attached. Adding this is pretty trivial, and > I'll put it into R-devel

Re: [Rd] Implicit vs explicit printing and the call stack

2007-05-13 Thread hadley wickham
On 5/13/07, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > On Sun, 13 May 2007, hadley wickham wrote: > > >> First, it was not clear that you are talking about the output of > >> traceback(), which is _a representation of_ the call stack and depends on > >>

Re: [Rd] Implicit vs explicit printing and the call stack

2007-05-13 Thread hadley wickham
> First, it was not clear that you are talking about the output of > traceback(), which is _a representation of_ the call stack and depends on > the details of deparsing. Given that there is a substantial delay in one case, and not in the other, I had assumed (perhaps falsely) that there was somet

[Rd] Implicit vs explicit printing and the call stack

2007-05-12 Thread hadley wickham
Hi everyone, I've run into a bit of strange problem with implicit vs explicit printing and the call stack. I've included an example at the bottom of this email. The basic problem is that I have an S3 object with a print method. When the object is implicitly printed (ie. typed directly into the c

Re: [Rd] directory/filename completion

2007-04-13 Thread hadley wickham
On 4/13/07, Roger Peng <[EMAIL PROTECTED]> wrote: > I've noticed something recently in R-beta that has changed since R 2.4.1 > and I'm not sure if it's a readline problem or an R problem. I am on a > Linux FC5 system and in R 2.4.1 I could do > > load("my-directory/ > > and then hit TAB and it wou

Re: [Rd] list/matrix chimera

2007-04-10 Thread hadley wickham
On 4/10/07, Seth Falcon <[EMAIL PROTECTED]> wrote: > "hadley wickham" <[EMAIL PROTECTED]> writes: > > > On 4/10/07, Tony Plate <[EMAIL PROTECTED]> wrote: > >> Aren't you just seeing the effect of drop=TRUE? (at least with the > >>

Re: [Rd] list/matrix chimera

2007-04-10 Thread hadley wickham
On 4/10/07, Tony Plate <[EMAIL PROTECTED]> wrote: > Aren't you just seeing the effect of drop=TRUE? (at least with the > examples you give below -- they all pick out a submatrix with extent one > on some dimension) > > AFAICT, matrices with a list as the underlying data work properly, e.g.: > > >

Re: [Rd] R-Forge?

2007-04-06 Thread hadley wickham
On 4/6/07, Simon Urbanek <[EMAIL PROTECTED]> wrote: > > On Apr 6, 2007, at 12:22 PM, hadley wickham wrote: > > > On 4/6/07, Stefan Theussl <[EMAIL PROTECTED]> wrote: > >> hadley wickham wrote: > >>>>> I have recently found RForge.net (http://w

Re: [Rd] R-Forge?

2007-04-06 Thread hadley wickham
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,

Re: [Rd] R-Forge?

2007-04-06 Thread hadley wickham
> > 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, browsing a bit on the site I found a link to another > > forge: R-Forge (http://r-forge.r-project.org/). > > > > Is/will the last one

Re: [Rd] Implementation of pretty

2007-04-05 Thread hadley wickham
On 4/5/07, Martin Maechler <[EMAIL PROTECTED]> wrote: > >>>>> "hadley" == hadley wickham <[EMAIL PROTECTED]> > >>>>> on Thu, 5 Apr 2007 10:43:41 -0500 writes: > > hadley> Hi, I'm trying to track down any references f

[Rd] Implementation of pretty

2007-04-05 Thread hadley wickham
Hi, I'm trying to track down any references for the implementation of pretty (or grid.pretty) in R. Is it original work? Thanks, Hadley __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Developer work cycle

2007-03-26 Thread hadley wickham
On 3/26/07, "José Luis Aznarte M." <[EMAIL PROTECTED]> wrote: > Hi! I've been browsing through the last months' archive and I can't > find an answer to my question, so here it is (let's hope it's not too > obvious): > I'm working on extensions of an R library, and I would be very > surprise

Re: [Rd] [R] How to create a list that grows automatically

2007-03-25 Thread hadley wickham
On 3/25/07, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > [Moved to R-devel for a technical comment.] > > On Fri, 9 Mar 2007, hadley wickham wrote: > > >> I would like to know if there is a way to create a list or an array (or > >> anything) which grows automat

Re: [Rd] wishlist -- Fix for major format.pval limitation (PR#9574)

2007-03-20 Thread hadley wickham
On 3/20/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 3/20/2007 1:40 PM, Gabor Grothendieck wrote: > > On 3/20/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > >> On 3/20/2007 12:44 PM, Gabor Grothendieck wrote: > >> > On 3/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> >> On 3/20/200

<    2   3   4   5   6   7   8   >