Re: [Rd] write.csv (PR#7992)

2005-07-07 Thread Gabor Grothendieck
[EMAIL PROTECTED] wrote: On 7/7/2005 12:38 PM, Gabor Grothendieck wrote: This may not be inconsistent with the documentation but it is inconsistent with good practice. Wrappers should, in general, set the default values, as the poster rightly indicated, and not the values themselves. Its

[Rd] Error message using Packages | Install | Cancel

2005-07-08 Thread Gabor Grothendieck
If we click on the Cancel button after the Packages | Install menu items in Windows 2.1.1 (dated 2005-06-23) it gives an error message. There really should be no error here since we intended not to install anything -- that is why we pressed Cancel. This is what appears on the console:

Re: [Rd] Sweave resource leak: leftover temp files (PR#7999)

2005-07-08 Thread Gabor Grothendieck
On 7/8/05, Duncan Murdoch [EMAIL PROTECTED] wrote: We're planning (or in the process of?) changing the bug reporting system, so this is only a temporary inconvenience. I think these points have been raised before but, just in case, some aspects of this, if its changing anyways, that would be

Re: [Rd] Error message using Packages | Install | Cancel

2005-07-08 Thread Gabor Grothendieck
On 7/8/05, Duncan Murdoch [EMAIL PROTECTED] wrote: On 7/8/2005 8:56 AM, Gabor Grothendieck wrote: If we click on the Cancel button after the Packages | Install menu items in Windows 2.1.1 (dated 2005-06-23) it gives an error message. There really should be no error here since we

Re: [Rd] Suggestion: Help users sort data frames

2005-07-08 Thread Gabor Grothendieck
This functionality does seem needed in base R to me too but in the interim you could create a package to make it available on CRAN or if that seems excessive for just one function you could contact the author of one of the multi-author packages and see if they would include it in their package.

Re: [Rd] Computer algebra in R - would that be an idea??

2005-07-12 Thread Gabor Grothendieck
On 7/12/05, Søren Højsgaard [EMAIL PROTECTED] wrote: From time to time people request symbolic computations beyond what D() and deriv() etc can provide. A brief look at the internet shows that there are many more or less developed computer algebra packages freely available. Therefore, I

Re: [Rd] Computer algebra in R - would that be an idea??

2005-07-12 Thread Gabor Grothendieck
what the equivalent would be on unix?). Best regards Søren Fra: Simon Blomberg [mailto:[EMAIL PROTECTED] Sendt: on 13-07-2005 01:52 Til: Duncan Murdoch; Gabor Grothendieck Cc: Søren Højsgaard; r-devel@stat.math.ethz.ch Emne: Re: [Rd] Computer algebra

Re: [Rd] Computer algebra in R - would that be an idea??

2005-07-15 Thread Gabor Grothendieck
On 7/15/05, Rob J Goedman [EMAIL PROTECTED] wrote: I wonder how difficult it would be to translate expressions back and forth from R to yacas in either R or C++. And maybe strip 'In' and 'Out' like parts. Not sure how generally this works but see my prior post:

Re: [Rd] Computer algebra in R - would that be an idea??

2005-07-17 Thread Gabor Grothendieck
On 7/17/05, Dirk Eddelbuettel [EMAIL PROTECTED] wrote: On 17 July 2005 at 20:55, Ayal Pinkus wrote: | R builds fine under Windows (though you need to pay attention to [...] | Ok. Unfortunately I work on a Mac OS X at home (I have access to | Windows, MS DevStudio Why didn't you say so

Re: [Rd] a possible bug in svmlight (PR#8012)

2005-07-18 Thread Gabor Grothendieck
Actually it does. Look in the examples section of ?svmlight On 7/18/05, Luke [EMAIL PROTECTED] wrote: If it is true, I wonder why the help page of svmlight doesn't mention this requirement explicitly. -Luke On 7/18/05, Gabor Grothendieck [EMAIL PROTECTED] wrote: The CRAN package does

Re: [Rd] [R] sequence()

2005-07-22 Thread Gabor Grothendieck
On 7/22/05, Prof Brian Ripley [EMAIL PROTECTED] wrote: R-help is not the list for R development questions: you didn't want help did you? -- moved to R-devel. I do wonder why sequence(c(0,-1)) [1] 1 0 1 0 -1 is considered useful. Given that the definition seems flawed and I

Re: [Rd] problem using model.frame()

2005-08-16 Thread Gabor Grothendieck
On 8/16/05, Gavin Simpson [EMAIL PROTECTED] wrote: On Tue, 2005-08-16 at 11:25 -0400, Gabor Grothendieck wrote: It can handle data frames like this: model.frame(y1) or model.frame(~., y1) Thanks Gabor, Yes, I know that works, but I want the function coca.formula

Re: [Rd] problem using model.frame()

2005-08-17 Thread Gabor Grothendieck
] wrote: On Wed, 2005-08-17 at 20:24 +0200, Martin Maechler wrote: GS == Gavin Simpson [EMAIL PROTECTED] on Tue, 16 Aug 2005 18:44:23 +0100 writes: GS On Tue, 2005-08-16 at 12:35 -0400, Gabor Grothendieck GS wrote: On 8/16/05, Gavin Simpson [EMAIL PROTECTED] wrote

Re: [Rd] Questions on \ vs / on Windows

2005-08-20 Thread Gabor Grothendieck
On 8/20/05, Seth Falcon [EMAIL PROTECTED] wrote: A recent thread on R-help reminded me of some questions I have regarding the path separator on Windows. The thread: [R] using paste and \ to create a valid filename The question: What are the use-cases where \ is required for paths passed

Re: [Rd] Which TEX for Wiindows

2005-08-23 Thread Gabor Grothendieck
On 8/23/05, Ales Ziberna [EMAIL PROTECTED] wrote: I am intending to instal TEX (for use with R - building, checking packages) on my WinXP SP2. I read that fptex is recomended, however http://www.fptex.org/ is not not available. Is MiKTeX the next best choice? Yes. Be sure to read:

Re: [Rd] Typo(s) in proc.time.Rd and comment about ?proc.time (PR#8092)

2005-08-24 Thread Gabor Grothendieck
On 8/24/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: On Wed, 24 Aug 2005 [EMAIL PROTECTED] wrote: I just downloaded the file ftp://ftp.stat.math.ethz.ch/Software/R/R-devel.tar.gz and within proc.time.Rd, the second paragraph of the \value section

Re: [Rd] RFC: loop connections

2005-08-26 Thread Gabor Grothendieck
OK. I guess you want one of the core people to respond but in the interim can you explain the terminology loop? Also, do you have any prototypical applications in mind? On 8/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I accidentally left one small change out of my previous patch.

[Rd] R CMD check and interfacing packages

2005-09-02 Thread Gabor Grothendieck
For an R package whose purpose is to interface to other software, since such other software is not necessarily being on CRAN how does one proceed so that the R package can pass 'R CMD check'? None of the examples or demos in the package can run without the software being interfaced to. Is

Re: [Rd] R CMD check and interfacing packages

2005-09-03 Thread Gabor Grothendieck
On 9/3/05, Uwe Ligges [EMAIL PROTECTED] wrote: Gabor Grothendieck wrote: For an R package whose purpose is to interface to other software, since such other software is not necessarily being on CRAN how does one proceed so that the R package can pass 'R CMD check'? None of the examples

Re: [Rd] win.packages.html not found

2005-09-05 Thread Gabor Grothendieck
To answer my own question I had mixed up my library paths and it seemed that it was using the tools package from R 2.1 due to this error even though I was using R 2.2. Once I corrected that the error message goes away. On 9/5/05, Gabor Grothendieck [EMAIL PROTECTED] wrote: I am using Windows XP

Re: [Rd] Problem in R 2.2.0 with environments and [

2005-09-05 Thread Gabor Grothendieck
Sorry. I think this problem was actually the same one as my previous post where I set my library path wrong. Once I set it correctly both versions worked fine. On 9/5/05, Gabor Grothendieck [EMAIL PROTECTED] wrote: I have found a problem with R 2.2.0 under Windows XP. Under R 2.1.1 patched I

[Rd] system on windows vs. unix

2005-09-06 Thread Gabor Grothendieck
The R system command has different arguments on Windows and UNIX. I hadn't realized that and I think it would be nice if the input= argument available on Windows were available on UNIX too and the ignore.stderr= argument available on UNIX were avaliable on Windows too. Even without that I could

[Rd] CRAN, Bioconductor and ctv package dependency questions

2005-09-07 Thread Gabor Grothendieck
1. Can CRAN packages depend on Bioconductor packages and still pass R CMD check? That is can Suggests: and Depends: in the DESCRIPTION file contain Bioconductor packages or only other CRAN packages? Is there an example? 2. If a package depends on a Bioconductor package does one just list the

Re: [Rd] two almost identical packages: best practice

2005-09-09 Thread Gabor Grothendieck
On 9/9/05, Robin Hankin [EMAIL PROTECTED] wrote: Hi I have written a whole bunch of methods for objects of class octonion. [ an octonion is a single column of an eight-row matrix. Octonions have their own multiplication rules and are a generalization of quaternions, which are columns of

[Rd] Issue tracking in packages [was: Re: [R] change in read.spss, package foreign?]

2005-09-09 Thread Gabor Grothendieck
On 9/9/05, Thomas Lumley [EMAIL PROTECTED] wrote: Many packages have a NEWS or ChangeLog file describing changes. You would typically have to look at the source package to find them, since by Unix tradition they are usually in the top-level directory and so are not included in the binary

Re: [Rd] Issue tracking in packages [was: Re: [R] change in read.spss, package foreign?]

2005-09-09 Thread Gabor Grothendieck
On 9/9/05, Thomas Lumley [EMAIL PROTECTED] wrote: On Fri, 9 Sep 2005, Gabor Grothendieck wrote: I personally put NEWS, WISHLIST and THANKS files in the 'inst' directory of all my source packages. This has the effect of copying them to the top level of the built version so

Re: [Rd] Issue tracking in packages [was: Re: [R] change in read.spss, package foreign?]

2005-09-09 Thread Gabor Grothendieck
On 9/9/05, Thomas Lumley [EMAIL PROTECTED] wrote: On Fri, 9 Sep 2005, Gabor Grothendieck wrote: How about if there were just a standard location and name such as inst/NEWS, inst/WISHLIST, inst/THANKS (which has the advantage that they are automatically made available in the built package

[Rd] \dontshow

2005-09-09 Thread Gabor Grothendieck
In R 2.2.0 I find that even if I use \dontshow in the examples section of an .Rd file that the code still shows. Has anyone else seen this? Are there any packages that use this facility that I could try in order to check this? I am using R.version.string # XP R version 2.2.0, 2005-09-03

[Rd] Copying libraries from one version of R to another (was Re: MikTeX will be assumed in R 2.2.0 in Windows)

2005-09-09 Thread Gabor Grothendieck
On 9/9/05, Duncan Murdoch [EMAIL PROTECTED] wrote: I've just committed some changes to allow R to be built and to use MikTeX without needing the Rd.sty files to be installed to localtexmf. Unfortunately, the changes are not compatible with other TeX packages, so if you're not using MikTeX

Re: [Rd] \dontshow

2005-09-09 Thread Gabor Grothendieck
On 9/9/05, Gabor Grothendieck [EMAIL PROTECTED] wrote: In R 2.2.0 I find that even if I use \dontshow in the examples section of an .Rd file that the code still shows. Has anyone else seen this? Are there any packages that use this facility that I could try in order to check this? I am

Re: [Rd] Issue tracking in packages [was: Re: [R] change in read.spss, package foreign?]

2005-09-10 Thread Gabor Grothendieck
On 9/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Fri, 9 Sep 2005 10:33:03 -0700 (PDT), Thomas Lumley (TL) wrote: On Fri, 9 Sep 2005, Gabor Grothendieck wrote: I personally put NEWS, WISHLIST and THANKS files in the 'inst' directory of all my source packages. This has

Re: [Rd] Issue tracking in packages [was: Re: [R] change in read.spss, package foreign?]

2005-09-10 Thread Gabor Grothendieck
On 9/10/05, Kurt Hornik [EMAIL PROTECTED] wrote: Thomas Lumley writes: On Fri, 9 Sep 2005, Gabor Grothendieck wrote: How about if there were just a standard location and name such as inst/NEWS, inst/WISHLIST, inst/THANKS (which has the advantage that they are automatically made

Re: [Rd] \dontshow

2005-09-10 Thread Gabor Grothendieck
On 9/10/05, Gabor Grothendieck [EMAIL PROTECTED] wrote: On 9/10/05, Kurt Hornik [EMAIL PROTECTED] wrote: Gabor Grothendieck writes: On 9/9/05, Gabor Grothendieck [EMAIL PROTECTED] wrote: In R 2.2.0 I find that even if I use \dontshow in the examples section of an .Rd file

Re: [Rd] R.version.string (Re: MikTeX will be assumed in R 2.2.0 in Windows)

2005-09-10 Thread Gabor Grothendieck
On 9/10/05, Duncan Murdoch [EMAIL PROTECTED] wrote: Gabor Grothendieck wrote: On 9/9/05, Duncan Murdoch [EMAIL PROTECTED] wrote: I've just committed some changes to allow R to be built and to use MikTeX without needing the Rd.sty files to be installed to localtexmf. Unfortunately

Re: [Rd] Issue tracking in packages [was: Re: [R] change in, read.spss, package foreign?]

2005-09-10 Thread Gabor Grothendieck
On 9/10/05, Frank E Harrell Jr [EMAIL PROTECTED] wrote: I would vote for allowing a URL or external file name in in DESCRIPTION, whose contents could be automatically displayed for the user when needed. Our changelogs are automatically generated by CVS and are on the web. Normally I would

Re: [Rd] Issue tracking in packages [was: Re: [R] change in read.spss, package foreign?]

2005-09-10 Thread Gabor Grothendieck
On 9/10/05, Thomas Lumley [EMAIL PROTECTED] wrote: On Sat, 10 Sep 2005, Gabor Grothendieck wrote: And one more comment. The DESCRIPTION file does not record the location or existence of the various subdirectories such as R, man, exec, etc. If NEWS is to be recorded as a meta data line

Re: [Rd] Issue tracking in packages [was: Re: [R] change in read.spss, package foreign?]

2005-09-11 Thread Gabor Grothendieck
On 9/10/05, Thomas Lumley [EMAIL PROTECTED] wrote: On Sat, 10 Sep 2005, Gabor Grothendieck wrote: On 9/10/05, Thomas Lumley [EMAIL PROTECTED] wrote: On Sat, 10 Sep 2005, Gabor Grothendieck wrote: And one more comment. The DESCRIPTION file does not record the location or existence

Re: [Rd] Copying libraries from one version of R to another (was Re: MikTeX will be assumed in R 2.2.0 in Windows)

2005-09-13 Thread Gabor Grothendieck
, Gabor Grothendieck wrote: On 9/9/05, Duncan Murdoch [EMAIL PROTECTED] wrote: I've just committed some changes to allow R to be built and to use MikTeX without needing the Rd.sty files to be installed to localtexmf. Unfortunately, the changes are not compatible with other TeX packages, so

Re: [Rd] Month recognition issue

2005-09-16 Thread Gabor Grothendieck
month.abb is hard coded English but I don't think its used by the routines you are interested in anyways. To momentarily set locale try this: Sys.setlocale(LC_ALL,EN) and Sys.setlocale(LC_ALL,FR) On 9/7/05, Sebastien Durand [EMAIL PROTECTED] wrote: Dear all, I am running R : Copyright

[Rd] Contacting RDCOMClient Maintainer

2005-09-19 Thread Gabor Grothendieck
I tried to contact the maintainer of RDCOMClient as per the DESCRIPTION file to report a bug but my mail bounced. Is there more recent contact information? The original message was received at Mon, 19 Sep 2005 03:03:21 -0500 (CDT) from hoemail2.lucent.com [192.11.226.163] - The following

Re: [Rd] Wishlist - access non-text from clipboard in Windows

2005-09-22 Thread Gabor Grothendieck
of them. On 9/22/05, Duncan Murdoch [EMAIL PROTECTED] wrote: On 9/22/2005 11:13 AM, Gabor Grothendieck wrote: Just wanted to post this wishlist item. Currently one can read text from the Windows clipboard but the Windows clipboard can hold all sorts of objects, not just text, and it can

Re: [Rd] Wishlist - access non-text from clipboard in Windows

2005-09-22 Thread Gabor Grothendieck
On 9/22/05, Duncan Murdoch [EMAIL PROTECTED] wrote: On 9/22/2005 1:12 PM, Gabor Grothendieck wrote: There is an open source clipboard extender CLCL that handles all clipboard formats. I think this code could be leveraged to simplify it substantially. Run CLCL and copy something from IE

[Rd] plot, spineplot, boxplot in R 2.2.0

2005-09-24 Thread Gabor Grothendieck
I noticed, what seened to me, to be odd. These produce a boxplot in the first case and a spineplot in the second case in R .2.2.0: plot(Sepal.Length ~ Species, iris) plot(Species ~ Sepal.Length, iris) What if one wants to exchange axes? Does the fact that this seemingly innocuous change result

Re: [Rd] is.Date function question

2005-09-26 Thread Gabor Grothendieck
Try this: is(Sys.Date(), Date) [1] TRUE is(33, Date) [1] FALSE inherits(Sys.Date(), Date) [1] TRUE inherits(33, Date) [1] FALSE R.version.string [1] R version 2.2.0, 2005-09-20 On 9/26/05, Charles Dupont [EMAIL PROTECTED] wrote: Why is there no is.Date function in R? I am running 2.1.1

[Rd] R 2.2.0 tooltips

2005-09-26 Thread Gabor Grothendieck
On R 2.2.0 (and maybe earlier ones too) the tooltips on the icons at the top include load image and save image. I find the use of the word image possibly confusing. I had just been editing some graphics images and moved over to R and my first thought was that these would allow me to insert a

Re: [Rd] Problem Sweaving vignettes: MiKTeX's texi2dvi reports errors

2005-10-03 Thread Gabor Grothendieck
. On 10/3/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Mon, 3 Oct 2005 11:31:40 -0400, Gabor Grothendieck (GG) wrote: I have R installed in c:\Program Files\R and I use MiKTeX and texi2dvi to process my vignettes. I do keep my package sources elsewhere; e.g. I would keep

[Rd] svn version number

2005-10-07 Thread Gabor Grothendieck
Is there some way of automatically including the svn version number of a package in the DESCRIPTION file or otherwise so that one can check from within R which svn version number one has? __ R-devel@r-project.org mailing list

Re: [Rd] svn version number

2005-10-07 Thread Gabor Grothendieck
Just want to clarify that it is the package itself that is being developed under svn; I was not referring to the svn version number of R. On 10/7/05, Gabor Grothendieck [EMAIL PROTECTED] wrote: Is there some way of automatically including the svn version number of a package in the DESCRIPTION

Re: [Rd] svn version number

2005-10-07 Thread Gabor Grothendieck
On 10/7/05, Duncan Murdoch [EMAIL PROTECTED] wrote: Gabor Grothendieck wrote: Is there some way of automatically including the svn version number of a package in the DESCRIPTION file or otherwise so that one can check from within R which svn version number one has? You could do

Re: [Rd] is.na- problem

2005-10-19 Thread Gabor Grothendieck
On 10/19/05, Marc Schwartz [EMAIL PROTECTED] wrote: On Thu, 2005-10-20 at 01:13 +0100, Ted Harding wrote: On 19-Oct-05 Gabor Grothendieck wrote: In the following the first element of xx should have been set to 0 but remains NA. Any comments? xx - c(NA,1) is.na(xx) - 0 xx

Re: [Rd] [R-gui] R GUI considerations (was: R, Wine, and multi-threadedness)

2005-10-20 Thread Gabor Grothendieck
On 10/20/05, Walter Johnston [EMAIL PROTECTED] wrote: Is there a simple way (e.g. some socket based mechanism) to feed commands into R and retrieve the results of those commands? This would require that I program the sequence of commands I want to use (or a means to generate them) and then

Re: [Rd] UML + R

2005-10-20 Thread Gabor Grothendieck
The proto package can draw object inheritance diagrams. On 10/20/05, Seth Falcon [EMAIL PROTECTED] wrote: Hi all, I'm considering building some tools to generate UML diagrams of R packages. Q: Does anyone know of existing R code that does UML-ish stuff? Thanks, + seth

[Rd] Problems with example(Grid) in grid package

2005-10-21 Thread Gabor Grothendieck
The following: library(grid) grid.newpage() example(Grid) has the yaxis label partly cut off and the x axis label does not appear at all. Also ?grid.multipanel in that example brings up documentation for grid-internal but this would not seem to be internal if its part of an example. I am using:

Re: [Rd] Problems with example(Grid) in grid package

2005-10-24 Thread Gabor Grothendieck
On 10/24/05, Paul Murrell [EMAIL PROTECTED] wrote: Hi Gabor Grothendieck wrote: The following: library(grid) grid.newpage() example(Grid) has the yaxis label partly cut off and the x axis label does not appear at all. Also ?grid.multipanel in that example brings up

[Rd] Microsoft help files

2005-10-26 Thread Gabor Grothendieck
I wonder if the software here: http://morte.jedrea.com/~jedwin/projects/chmlib/ or at any of the links on that page might allow elimination of the need for separately downloading the Microsoft Help compiler -- which is just one more task that one must perform to get up and running to build your

Re: [Rd] strsplit ignores empty fields (PR#8271)

2005-11-01 Thread Gabor Grothendieck
A workaround would be to append # onto the end of the string: s - c(abc#def, abc#, #def) ss - paste(s, #, sep = ) strsplit(ss, #) [[1]] [1] abc def [[2]] [1] abc [[3]] [1] def On 11/1/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Full_Name: Tim Beissbarth Version: 2.2.0 OS:

Re: [Rd] Package manpage DCF hooks

2005-11-14 Thread Gabor Grothendieck
What I do is make my whatever-package.Rd page be the central page where one can get a list of all the other places one can look for info (rather than placing the info itself there). See, for example, library(dyn) package?dyn On 11/14/05, Paul Roebuck [EMAIL PROTECTED] wrote: Was looking at

Re: [Rd] Bug or a feature that I completely missed?

2005-11-15 Thread Gabor Grothendieck
On 11/15/05, Berwin A Turlach [EMAIL PROTECTED] wrote: Dear all, while looking at some R-code submitted by students in a unit that I teach, I came across constructs that I thought would lead to an error. Much to my surprise, the code is actually executed. A boiled down version of the code

Re: [Rd] x[1,], x[1,,], x[1,,,], ...

2005-11-29 Thread Gabor Grothendieck
I couldn't find it: library(magic) apltake Error: object apltake not found On 11/29/05, Robin Hankin [EMAIL PROTECTED] wrote: Hi everyone apltake(x,1) [where apltake() is part of library(magic)] does this. best wishes Robin On 23 Nov 2005, at 10:50, Henrik Bengtsson wrote:

Re: [Rd] typo in `eurodist'

2005-12-08 Thread Gabor Grothendieck
This makes it pretty clear which are the meaningful ones: g - structure(c(5070, 75200, 573, 836, 1020, 349, 1850, 530, 352, 576, 589, 618, 349, 652), .Names = c(Gibraltar, Gibralta, Gibraltr, Gibralar, Gibratar, Gibrltar, Gibaltar, Giraltar, Gbraltar, ibralter, Gibralatar, Gibrlatar,

Re: [Rd] typo in `eurodist'

2005-12-08 Thread Gabor Grothendieck
Yet the methodology of my prior post seems to pick out the correct one: a - c(Amateur = 5230, Amature = 280, Amatuer = 266, Ameteur = 619000, Ameture = 941000, Ametuer = 574000) plot(lm(log(a) ~ 1), which = 2) On 12/8/05, Tony Plate [EMAIL PROTECTED] wrote: I would be wary of

Re: [Rd] 0/1 vector for indexing leads to funny behaviour (PR#8389) (maybe a documentation deficiency?)

2005-12-13 Thread Gabor Grothendieck
The other place its discussed is in 3.4.1 of the R Language Definition: http://finzi.psych.upenn.edu/R/doc/manual/R-lang.html#Indexing-by-vectors On 12/13/05, Tony Plate [EMAIL PROTECTED] wrote: Yes, 0/1 (numeric) are intended to be used as index vectors -- and they have the semantics of

[Rd] xy.coords

2005-12-30 Thread Gabor Grothendieck
In ?xy.coords it says: If 'y' is missing and 'x' is a formula: of the form 'yvar ~ xvar'. 'xvar' and 'yvar' are used as x and y variables. list: containing components 'x' and 'y', these are used to define plotting coordinates. time series: the x values

Re: [Rd] xy.coords

2005-12-31 Thread Gabor Grothendieck
It could be changed to missing(y) || is.null(y) and the docs amended. That way existing code will continue to work and code that otherwise gives an error currently, but should have worked, will now work too. On 12/31/05, Duncan Murdoch [EMAIL PROTECTED] wrote: On 12/30/2005 10:10 PM, Gabor

Re: [Rd] xy.coords

2005-12-31 Thread Gabor Grothendieck
It does not achieve design consistency. One would have to specify NULL but that should not really be necessary. On 12/31/05, Duncan Murdoch [EMAIL PROTECTED] wrote: On 12/31/2005 12:21 PM, Gabor Grothendieck wrote: I think the point is that (1) it does not work as documented and (2) in most

Re: [Rd] xy.coords

2005-12-31 Thread Gabor Grothendieck
the intended way -- the intended and better way is as documented and the software, not the documentation, ought to be changed. On 12/31/05, Duncan Murdoch [EMAIL PROTECTED] wrote: On 12/31/2005 12:57 PM, Gabor Grothendieck wrote: It does not achieve design consistency. It's consistent with the way

[Rd] New R folder names bring out Windows batch file bug

2005-12-31 Thread Gabor Grothendieck
Just wanted to point out to anyone trying to write Windows batch files that the new R-whatever folder names bring out a bug in Windows batch files related to short file names. In particular, this code (which is to the best of my understanding, valid) gives an error. The solution appears to be to

Re: [Rd] xy.coords

2005-12-31 Thread Gabor Grothendieck
On 12/31/05, Duncan Murdoch [EMAIL PROTECTED] wrote: On 12/31/2005 3:26 PM, Gabor Grothendieck wrote: I think this is just playng with words. I'm starting to be convinced of that by the fact that you haven't posted any sample code where using a single parameter would be desirable. Loose

Re: [Rd] New R folder names bring out Windows batch file bug

2005-12-31 Thread Gabor Grothendieck
/31/2005 3:59 PM, Gabor Grothendieck wrote: Just wanted to point out to anyone trying to write Windows batch files that the new R-whatever folder names bring out a bug in Windows batch files related to short file names. In particular, this code (which is to the best of my understanding

[Rd] Wish list

2006-01-01 Thread Gabor Grothendieck
This is my New Year wishlist for R features. One common thread is that I find I sometimes use languages other than R including javascript, Windows batch and gawk. Others have mentioned other languages too. It would be nice if, in those cases I could use R simplifying development into a single

Re: [Rd] checkpointing

2006-01-03 Thread Gabor Grothendieck
One possibility for overcoming this problem might be to divide the variables being optimized over into two sets using a grid over one set (which should probably consist of only one or two variables) and then fixing the gridded variables use optim over the rest. In many problems its really just

Re: [Rd] Multiplication (PR#8466)

2006-01-06 Thread Gabor Grothendieck
On 1/6/06, Thomas Lumley [EMAIL PROTECTED] wrote: On Fri, 6 Jan 2006, [EMAIL PROTECTED] wrote: hi - in version 2.1 the command -2^2 gives -4 as the answer. (-2)^2 is evaluated correctly. So is -2^2. The precedence of ^ is higher than that of unary minus. It may be

Re: [Rd] Multiplication (PR#8466)

2006-01-06 Thread Gabor Grothendieck
Precedence rules are tricky, in general, and the usual advice with most programming languages is to liberally use parentheses when in doubt. Its actually not that surprising in this case but consider 0-1:3 and -1:3 which give different results since one uses binary minus and the other uses unary

Re: [Rd] prod(numeric(0)) surprise

2006-01-09 Thread Gabor Grothendieck
The way to think about it is: prod(rep(x,n)) == x^n and that works for n=0 too. On 1/9/06, Martin Morgan [EMAIL PROTECTED] wrote: I'm a little confused. I understand that numeric(0) means an empty numeric vector, not the number 0 expressed as numeric. As it is now, prod(numeric(0))

[Rd] natural sorting

2006-01-11 Thread Gabor Grothendieck
It would be nifty to incorporate this into R or into an R package: http://sourcefrog.net/projects/natsort/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Bug in xy.coords() or documentation error?

2006-01-21 Thread Gabor Grothendieck
This was discussed just recently. This is a design error but the maintainers claim there are no cases of interest where it matters. On 1/21/06, Gavin Simpson [EMAIL PROTECTED] wrote: Hi, I noticed the following problem with xy.coords() in R 2.2.1-patched (version info at the foot of this

Re: [Rd] Bug in xy.coords() or documentation error?

2006-01-21 Thread Gabor Grothendieck
If the latest version does not have it then I guess it was not done. I do agree with you that there is a problem and here and think that the code, not just the docs, should be fixed. On 1/21/06, Gavin Simpson [EMAIL PROTECTED] wrote: On Sat, 2006-01-21 at 13:39 -0500, Gabor Grothendieck wrote

Re: [Rd] Master's project to coerce linux nvidia drivers to run generalised linear models

2006-01-23 Thread Gabor Grothendieck
I wonder if it would make more sense to get a relatively low level package to run on it so that all packages that used that low level package would benefit. The Matrix package and the functions runmean and sum.exact in package caTools are some things that come to mind. Others may have other ideas

Re: [Rd] Master's project to coerce linux nvidia drivers to run generalised linear models

2006-01-24 Thread Gabor Grothendieck
On 1/24/06, Douglas Bates [EMAIL PROTECTED] wrote: On 1/23/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: I wonder if it would make more sense to get a relatively low level package to run on it so that all packages that used that low level package would benefit. The Matrix package

Re: [Rd] Using substitute from inside an S4 method

2006-01-25 Thread Gabor Grothendieck
Try defining your method like this. I don't know how generally this works but it seems to work here. setMethod(A, signature(x=numeric), function(x, y) as.character(substitute(x, sys.frame(-1 On 1/25/06, Seth Falcon [EMAIL PROTECTED] wrote: Hi all, I would like to access the

Re: [Rd] [R] help with read.table() function

2006-01-29 Thread Gabor Grothendieck
On 1/29/06, Duncan Murdoch [EMAIL PROTECTED] wrote: On 1/29/2006 5:20 PM, Gabor Grothendieck wrote: On 1/29/06, Duncan Murdoch [EMAIL PROTECTED] wrote: On 1/29/2006 1:24 PM, Gabor Grothendieck wrote: Normally one expects stdin to be the default on command line programs and something

[Rd] ?bquote

2006-02-10 Thread Gabor Grothendieck
?bquote says it returns an expression but, in fact, it typically (though not always) returns a call object: class(bquote(a+b)) [1] call class(bquote(1)) [1] numeric __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] ?bquote

2006-02-10 Thread Gabor Grothendieck
On 10 Feb 2006 12:15:10 +0100, Peter Dalgaard [EMAIL PROTECTED] wrote: Gabor Grothendieck [EMAIL PROTECTED] writes: ?bquote says it returns an expression but, in fact, it typically (though not always) returns a call object: class(bquote(a+b)) [1] call class(bquote(1)) [1

Re: [Rd] PR#6614

2006-02-22 Thread Gabor Grothendieck
Try this: subset(iris, select = - Species) On 2/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I agree with the submitter that this needs some kind of solution. Although data.frame[,-12] works, how do I drop a named column (the most common use case)? (I found this bug while searching for

Re: [Rd] Links to non-vignette documentation

2006-02-23 Thread Gabor Grothendieck
I haven't followed this whole thread but note that if your package is called mypkg then you can create an .Rd file called mypkg-package.Rd which will be called up when the user issues: package?mypkg and that can contain links to whatever you are interested in. Try library(dyn) package?dyn for

Re: [Rd] Request for showWarnings parameter for write.table

2006-02-27 Thread Gabor Grothendieck
You might also check out suppressWarnings, e.g. suppressWarnings(write.table(...whatevever...)) On 2/27/06, Leif Kirschenbaum [EMAIL PROTECTED] wrote: Madams Sirs, I use write.table to write CSV files to generate reports for my colleagues to open in their spreadsheet application of

Re: [Rd] (no subject)

2006-03-01 Thread Gabor Grothendieck
hhc is the Microsoft Help compiler. Make sure its on your path. Info on it is here: http://www.murdoch-sutherland.com/Rtools/#ldbug Also batchfiles: http://cran.r-project.org/contrib/extra/batchfiles/ contains a Windows XP batch file, rfind.bat, that you can run without arguments that will try

Re: [Rd] '...' passed to both plot() and legend()

2006-03-02 Thread Gabor Grothendieck
You can remove the legend names, assuming there are none that are also plot names, like this (untested): args - list(...) legnams - intersect(names(args), names(formals(legend))] do.call(plot, replace(args, legnams, NULL)) On 3/2/06, Dimitris Rizopoulos [EMAIL PROTECTED] wrote: Dear R-devels,

Re: [Rd] [as.POSIXlt]: Incorrect conversion only for some specific date/time (PR#8654)

2006-03-03 Thread Gabor Grothendieck
Its due to daylight savings time in your time zone. If you don't want that then use the tz = GMT argument to specify GMT time zone as GMT has no daylight savings time or set your entire session that way, i.e. Sys.putenv(TZ = GMT). Also read the Help Desk article in R News 4/1 on dates and times.

Re: [Rd] Wishlist - Give R a name that shows up in search engines...

2006-03-06 Thread Gabor Grothendieck
Note that just entering R into google will get you to the R home page and looking for R plus some other phrase actually does work quite often. One can also try r-project or r-project.org plus the phrase. On 3/6/06, Tim Brown [EMAIL PROTECTED] wrote: Hi everyone, I know this is a long shot but

Re: [Rd] Expanding partial names

2006-03-07 Thread Gabor Grothendieck
, Duncan Murdoch [EMAIL PROTECTED] wrote: On 3/7/2006 9:42 AM, Gabor Grothendieck wrote: Try this: wrapper - function(...) { args - list(...) if (length(args)) { nf - names(formals(lowlevel)) nams - nf[pmatch(names(args), nf)] args - replace(list(longname = 2

Re: [Rd] New simpleExit() condition (Was: Re: Can example() code stop the example without generating an error?)

2006-03-14 Thread Gabor Grothendieck
I would very much like to see such a feature too. On 3/14/06, Henrik Bengtsson [EMAIL PROTECTED] wrote: On 3/14/06, Uwe Ligges [EMAIL PROTECTED] wrote: Henrik Bengtsson wrote: Hi, does anyone know if it is possible to write example code (in Rd examples) such that one can stop the

Re: [Rd] Wishlist - access non-text from clipboard in Windows

2006-03-28 Thread Gabor Grothendieck
Hi, I am just trying it now. Suppose I copy the first few lines of the table at: http://www.pricelesswarehome.org/2006/CumulativePL.php into the clipboard by selecting them with the mouse in IE and pressing ctrl-C. Now I can just go to Excel, click on a cell and press ctrl-V and they get

Re: [Rd] Wishlist - access non-text from clipboard in Windows

2006-03-29 Thread Gabor Grothendieck
On 3/29/06, Duncan Murdoch [EMAIL PROTECTED] wrote: On 3/28/2006 10:08 PM, Gabor Grothendieck wrote: Hi, I am just trying it now. Suppose I copy the first few lines of the table at: http://www.pricelesswarehome.org/2006/CumulativePL.php into the clipboard by selecting them

[Rd] Microsoft Monad Shell

2006-04-03 Thread Gabor Grothendieck
Not sure if this has application for R but Microsoft's new Monad shell is now in public beta. I have not looked at it myself but I wonder if the tools that are required to create Windows R packages could be replaced by this? The Monad team has recently released Monad Beta 3.1 to Microsoft

Re: [Rd] Return function from function with minimal environment

2006-04-04 Thread Gabor Grothendieck
On 4/4/06, Henrik Bengtsson [EMAIL PROTECTED] wrote: On 4/4/06, Thomas Lumley [EMAIL PROTECTED] wrote: On Tue, 4 Apr 2006, Henrik Bengtsson wrote: Hi, this relates to the question How to set a former environment? asked yesterday. What is the best way to to return a function with

Re: [Rd] Return function from function with minimal environment

2006-04-04 Thread Gabor Grothendieck
On 4/4/06, Henrik Bengtsson [EMAIL PROTECTED] wrote: On 4/4/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: On 4/4/06, Henrik Bengtsson [EMAIL PROTECTED] wrote: On 4/4/06, Thomas Lumley [EMAIL PROTECTED] wrote: On Tue, 4 Apr 2006, Henrik Bengtsson wrote: Hi

Re: [Rd] extending strsplit(): supply pattern to keep, not to split by

2006-04-04 Thread Gabor Grothendieck
gsubfn in package gsubfn can do this. See the examples in ?gsubfn On 4/4/06, Bill Dunlap [EMAIL PROTECTED] wrote: strsplit() is a convenient way to get a list of items from a string when you have a regular expression for what is not an item. E.g., strsplit(1.2, 34, 1.7e-2, split=[ ,]

Re: [Rd] extending strsplit(): supply pattern to keep, not to split by

2006-04-04 Thread Gabor Grothendieck
On 4/4/06, Bill Dunlap [EMAIL PROTECTED] wrote: On Tue, 4 Apr 2006, Gabor Grothendieck wrote: gsubfn in package gsubfn can do this. See the examples in ?gsubfn Thanks. gsubfn looks useful, but may be overkill for this, and it isn't vectorized. To do what gsubfn is vectorized. Its

Re: [Rd] extending strsplit(): supply pattern to keep, not to split by

2006-04-06 Thread Gabor Grothendieck
for this problem we could omit the function altogether and write: library(gsubfn) # ver 0.1-1 needed x - c(12;34:56,89,,12, 1.2, .4, 1., 1e3) strapply(x, number.pattern) See ?strapply for more info. On 4/4/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: On 4/4/06, Bill Dunlap [EMAIL PROTECTED

<    3   4   5   6   7   8   9   10   >