Re: [Rd] Human-style sort() of alphanum strings?

2010-01-07 Thread Gabor Grothendieck
, 2010 at 3:48 PM, Gabor Grothendieck ggrothendi...@gmail.com wrote: See mixedsort in gtools.  Also on http://gsubfn.googlecode.com see mixsort example in the section starting ### more examples On Tue, Jan 5, 2010 at 6:34 PM, Henrik Bengtsson h...@stat.berkeley.edu wrote: I know it is fairly easy

Re: [Rd] Human-style sort() of alphanum strings?

2010-01-05 Thread Gabor Grothendieck
See mixedsort in gtools. Also on http://gsubfn.googlecode.com see mixsort example in the section starting ### more examples On Tue, Jan 5, 2010 at 6:34 PM, Henrik Bengtsson h...@stat.berkeley.edu wrote: I know it is fairly easy to implement (though not always well defined), but is there an

[Rd] R Wish List

2010-01-01 Thread Gabor Grothendieck
This is my 2010 Wish list for R. Most of these have been discussed on r-help or r-devel already so this is more of a wrap-up. The first 4 relate to R itself, the next 2 to the R environment and the last 4 relate to using R with other languages: R 1. Strings. Some way of placing backslashes in

Re: [Rd] simplifying number of R installations on disk

2009-12-26 Thread Gabor Grothendieck
On Sat, Dec 26, 2009 at 6:26 PM, Charlotte Maia mai...@gmail.com wrote: I think it's a very bad idea to truncate version numbers. Version numbers are important, and there may be a critical difference x.y.0 and x.y.1. Plus there is no guarantee that the updated version is better than the

Re: [Rd] simplifying number of R installations on disk

2009-12-26 Thread Gabor Grothendieck
Note that there is a batch file Rgui.bat, etc. here: http://batchfiles.googlecode.com that will find R in the Windows registry and then run Rgui.exe so that you don't need to change any paths each time you do an install. There is also a command, Rversions.hta, that will display which versions of

[Rd] simplifying number of R installations on disk

2009-12-25 Thread Gabor Grothendieck
If R-2.10.0 were the current version of R then by default there will be an R-2.10.0 directory on your machine and when R-2.10.1 comes along a new directory R-2-10.1 will be created if you use the installation defaults. I normally don't use the defaults but rather put all R-2.10.* versions in the

Re: [Rd] A package for visualizing R syntax

2009-12-23 Thread Gabor Grothendieck
Very nice. Certainly it would be welcome to see this packaged for widespread use. On Wed, Dec 23, 2009 at 2:20 PM, Sylvain Loiseau sylvain.lois...@unicaen.fr wrote: Dear all, I have written a small set of functions for drawing graphical representations of R objects and evaluations of R

Re: [Rd] cut.POSIXt problem with breaks= quarter (PR#14162)

2009-12-21 Thread Gabor Grothendieck
as.yearqtr in the zoo package could be used as a workaround until cut is fixed. as.yearqtr(as.Date(c(2009-03-21,2009-03-31))) [1] 2009 Q1 2009 Q1 as.Date(as.yearqtr(as.Date(c(2009-03-21,2009-03-31 [1] 2009-01-01 2009-01-01 On Mon, Dec 21, 2009 at 7:45 AM, shmu...@googlemail.com wrote:

Re: [Rd] raster support in graphics devices

2009-12-04 Thread Gabor Grothendieck
Currently I have an application that saves the current graphics image (that was created with classic graphics or grid graphics) to a file and then reads the file back in using readBin: png(my.png) plot(1:10) dev.off() raw.img - readBin(my.png, raw, size = 1, n = 1) (I am doing this on

Re: [Rd] raster support in graphics devices

2009-12-04 Thread Gabor Grothendieck
) # chr [1:672, 1:671] white white white white white ... but as far as I understand in ?grid.cap and the underlying code there is no capGrob equivalent that wouldn't require opening a new device before capturing the output. I hope I'm mistaken. Best, baptiste 2009/12/4 Gabor Grothendieck

Re: [Rd] raster support in graphics devices

2009-12-04 Thread Gabor Grothendieck
Just to explain a bit more I am thinking about something like this: con - graphicsConnection() # I've just made this up png(con) plot(1:10) dev.off() raw.img - readBin(con, raw, size = 1, n = 1) On Fri, Dec 4, 2009 at 8:28 AM, Gabor Grothendieck ggrothendi...@gmail.comwrote: Currently

Re: [Rd] raster support in graphics devices

2009-12-04 Thread Gabor Grothendieck
Right. On Fri, Dec 4, 2009 at 10:53 AM, hadley wickham h.wick...@gmail.com wrote: Just to explain a bit more I am thinking about something like this: con - graphicsConnection() # I've just made this up png(con) plot(1:10) dev.off() raw.img - readBin(con, raw, size = 1, n =

[Rd] tzone attribute gets stripped on POSIXct variable

2009-11-29 Thread Gabor Grothendieck
The POSIXct variable xx has a tzone attribute but if I add 1 second to it then the tzone attribute gets stripped. Is that intended? xx - as.POSIXct(format(Sys.time()), tz = ) dput(xx) structure(1259541335.099, class = c(POSIXt, POSIXct), tzone = ) dput(xx+1) structure(1259541336.099, class =

Re: [Rd] Link to pdf documentation from other package ?

2009-11-24 Thread Gabor Grothendieck
On Wed, Nov 18, 2009 at 8:29 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: you could use the Sweave like macro to compute the path inside the Rd environments \Sexpr{file.path(system.file(package=AlgDesign, doc), AlgDesign.pdf)} described in 'Writing R extensions' 2.11

Re: [Rd] Link to pdf documentation from other package ?

2009-11-24 Thread Gabor Grothendieck
On Tue, Nov 24, 2009 at 10:26 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 11/24/2009 8:20 AM, Gabor Grothendieck wrote: On Wed, Nov 18, 2009 at 8:29 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: you could use the Sweave like macro to compute the path inside the Rd environments

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread Gabor Grothendieck
Knowing what percentage of different OSes are being used is of interest to package developers and would be obscured by the proposal to massage the data. I prefer to see the raw figure as is. Also the number of IPs are important and should not be removed in my opinion since (1) it is a measure of

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread Gabor Grothendieck
On Mon, Nov 23, 2009 at 9:48 AM, hadley wickham h.wick...@gmail.com wrote: Knowing what percentage of different OSes are being used is of interest to package developers and would be obscured by the proposal to massage the data.  I prefer to see the raw figure as is. I agree.  I was arguing

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread Gabor Grothendieck
On Mon, Nov 23, 2009 at 11:11 AM, Friedrich Leisch friedrich.lei...@stat.uni-muenchen.de wrote: On , Anonymous () wrote:   Knowing what percentage of different OSes are being used is of   interest to package developers and would be obscured by the proposal   to massage the data.  I prefer to

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread Gabor Grothendieck
On Mon, Nov 23, 2009 at 12:09 PM, hadley wickham h.wick...@gmail.com wrote: As Hadley already pointed out we cannot make CRAN logs publicly available for privacy reasons. That would be a violation of national laws. I think that's unlikely.  There is no info given out identifying users.  

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread Gabor Grothendieck
On Mon, Nov 23, 2009 at 12:15 PM, Friedrich Leisch friedrich.lei...@stat.uni-muenchen.de wrote: IP address plus time will always allow sysadmins to recover identities. For static adresses or in combination with mail headers etc it is also not exactly rocket science for others. I had not

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread Gabor Grothendieck
On Mon, Nov 23, 2009 at 12:37 PM, Friedrich Leisch friedrich.lei...@stat.uni-muenchen.de wrote:   On Mon, Nov 23, 2009 at 12:15 PM, Friedrich Leisch   friedrich.lei...@stat.uni-muenchen.de wrote:   IP address plus time will always allow sysadmins to recover   identities. For static adresses

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread Gabor Grothendieck
On Mon, Nov 23, 2009 at 3:51 PM, Fellows, Ian ifell...@ucsd.edu wrote: 6. Regarding package dependancies, I was thinking about also counting the number of top level downloads, as approximated by the number of downloads where a reverse dependancy was not downloaded in the next 5 min by the

Re: [Rd] Calling default method for primitive functions

2009-11-23 Thread Gabor Grothendieck
See ?.subset On Mon, Nov 23, 2009 at 4:00 PM, Hadley Wickham had...@rice.edu wrote: Hi all, How can I call the default method of a S3 object defined by a primitive method?   i.e. in the following example, how do I call the default [ method instead of the one I defined for the class. new_a

Re: [Rd] Surprising length() of POSIXlt vector (PR#14073)

2009-11-23 Thread Gabor Grothendieck
I agree it should be changed. Perhaps there could be a global option that gives the previous behavior. The global option would be deprecated after a while but in the interim it would give package developers a change to move over and to try it under both definitions. On Fri, Nov 20, 2009 at 1:05

[Rd] error message when running news()

2009-11-22 Thread Gabor Grothendieck
When running news() in I get this error message from print.news_db: news() Error: invalid version specification 2.0.12.0.1 patched2.1.02.1.12.1.1 patched2.10.02.10.0 patched2.2.02.2.12.2.1 patched2.3.02.3.12.3.1 patched2.4.02.4.12.4.1 patched2.5.02.5.12.5.1 patched2.6.02.6.12.6.22.6.2

[Rd] make.packages.html

2009-11-17 Thread Gabor Grothendieck
In R version 2.10.0 Patched (2009-11-15 r50445) on Windows Vista upon issuing help.start() and clicking on Packages I get this. Packages in C:\Users\Gabor\Documents\R\win-library\2.10 C:\Users\Gabor\Documents/R/win-library/2.10/AER/DESCRIPTION -- Title is missing --

Re: [Rd] file.rename overwrites existing target (PR#14065)

2009-11-15 Thread Gabor Grothendieck
On Sun, Nov 15, 2009 at 9:58 AM, Jari Oksanen jari.oksa...@oulu.fi wrote: On 15/11/09 16:35 PM, jo...@web.de jo...@web.de wrote: Full_Name: Jens Oehlschlägel Version: 2.10.0 OS: Windows XP Professional Submission from: (NULL) (85.181.158.112) file.rename() will successfully rename file a

Re: [Rd] Fwd: AR(2) modelling

2009-11-15 Thread Gabor Grothendieck
Try this: debug(stats:::ar.yw.default) and then run the ar function to step through the ar code so you can see the results line by line and understand what it is doing at a very detailed level. On Sun, Nov 15, 2009 at 10:06 AM, Christophe Dutang duta...@gmail.com wrote: As you are sure of the

Re: [Rd] Suggestion: Add links to NEWS and CHANGES on help.start() page

2009-11-13 Thread Gabor Grothendieck
Its also difficult to know about demos unless you specifically issue a demo(package = mypackage) command. It would be nice if these were listed too. Note that the NEWS and/or ChangeLog file are listed on the package's CRAN page such as: http://cran.r-project.org/package=zoo but the demos

Re: [Rd] Suggestion: Add links to NEWS and CHANGES on help.start() page

2009-11-13 Thread Gabor Grothendieck
In the case of R itself and the Windows platform this might usefully be placed into the Rgui help menu. On Fri, Nov 13, 2009 at 8:44 AM, Henrik Bengtsson h...@stat.berkeley.edu wrote: Please note my initial comment that it is hard for newcomers to find or even know about the existence of NEWS

Re: [Rd] The default behaviour of a missing entry in an environment

2009-11-13 Thread Gabor Grothendieck
Note that one should use inherits = FALSE argument on get and exists to avoid returning objects from the parent, the parent of the parent, etc. On Fri, Nov 13, 2009 at 2:27 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 11/13/2009 2:03 PM, Trishank Karthik Kuppusamy wrote: Greetings

Re: [Rd] The default behaviour of a missing entry in an environment

2009-11-13 Thread Gabor Grothendieck
On Fri, Nov 13, 2009 at 7:21 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 13/11/2009 6:39 PM, Gabor Grothendieck wrote: Note that one should use inherits = FALSE argument on get and exists to avoid returning objects from the parent, the parent of the parent, etc. I disagree.  Normally

Re: [Rd] html help in Windows

2009-11-11 Thread Gabor Grothendieck
This has already been discussed on this list. Its now a link at the bottom of the page labeled Index. On Wed, Nov 11, 2009 at 7:54 PM, Fraser Sim fj...@buffalo.edu wrote: Hi all, Another comment re: html help in Windows. It seems that we've lost the functionality of being able to browse

Re: [Rd] textConnection performance quadratic (PR#14053)

2009-11-09 Thread Gabor Grothendieck
strsplit can split by separators and strapply in the gsubfn package can split by content. On Mon, Nov 9, 2009 at 6:40 PM, bill.hopk...@level3.com wrote: Full_Name: William E. Hopkins Version: 2.9.0 OS: Windows XP Submission from: (NULL) (209.244.4.106) textConnection() has quadratic

Re: [Rd] sapply improvements

2009-11-04 Thread Gabor Grothendieck
S4 generics can specify a valueClass. Perhaps that could be used in those cases. On Wed, Nov 4, 2009 at 3:24 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 11/4/2009 12:15 PM, William Dunlap wrote: -Original Message- From: r-devel-boun...@r-project.org

Re: [Rd] Request: bring back windows chm help support (PR#14034)

2009-11-02 Thread Gabor Grothendieck
On Mon, Nov 2, 2009 at 9:53 AM, John Fox j...@mcmaster.ca wrote: I think that there's one more thing to be said in favour of chm help, and that's that its format is familiar to Windows users. I've been using html help on Windows myself for a long time, but before R 2.10.0 recommended chm help

Re: [Rd] Internal error in 'ls' for pathological environments (PR#14035)

2009-11-01 Thread Gabor Grothendieck
On Sun, Nov 1, 2009 at 6:02 AM, Peter Dalgaard p.dalga...@biostat.ku.dk wrote: macra...@alum.mit.edu wrote: nchar(with(list(2),ls())) gives an internal error. This is of course a peculiar call (no names in the list), but the error is not caught cleanly. It is not clear from the

Re: [Rd] Request: bring back windows chm help support (PR#14034)

2009-11-01 Thread Gabor Grothendieck
On Sun, Nov 1, 2009 at 5:55 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: What is it that you particularly liked about the CHM help?  One thing it did well was the table of contents at the side, and the built-in search.  I would like to get those back, in the HTML help.  Is there anything

Re: [Rd] Request: bring back windows chm help support (PR#14034)

2009-11-01 Thread Gabor Grothendieck
))) ?help.search On Sun, Nov 1, 2009 at 6:18 PM, Peter Ehlers ehl...@ucalgary.ca wrote: Gabor Grothendieck wrote: On Sun, Nov 1, 2009 at 5:55 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: What is it that you particularly liked about the CHM help?  One thing it did well was the table of contents

Re: [Rd] forwarded: bug (?) in cut.POSIXt with breaks=integer

2009-10-17 Thread Gabor Grothendieck
That is usually done with trunc rather than cut since in the case of a time series we normally don't want a factor result (which is what cut would give): trunc(tt, secs) trunc(tt, mins) # etc trunc.POSIXt does not support the 30 secs syntax but trunc.times in the chron package supports similar

Re: [Rd] (PR#14012)

2009-10-17 Thread Gabor Grothendieck
Even though its not hard to convert files, I think it would be better if R could directly handle different line endings since R tends to be used in a cross platform way and its common to have files of different line endings that originated from different systems. On Sat, Oct 17, 2009 at 5:03 PM,

Re: [Rd] Named backreference in gsub()?

2009-10-03 Thread Gabor Grothendieck
strapply in the gsubfn package matches a regular expression and passes each back reference as a separate argument to the indicated function, in this case paste. Any number of back references may be used. Here is an example where there are more than 9: # pass each back reference in regular

[Rd] Downloading R-2.10.0

2009-09-28 Thread Gabor Grothendieck
For Windows, this page http://cran.r-project.org/bin/windows/base/ gives a link to download - R 2.9.2 - r-patched (R 2.9.2 patched) - old releases and - r-devel (R 2.11.0) but there is no obvious link to R 2.10.0. From where do we download that? __

Re: [Rd] R v2.10.0: Doc clarification for cross references and where are we heading?

2009-09-23 Thread Gabor Grothendieck
On Wed, Sep 23, 2009 at 10:54 PM, Duncan Murdoch murd...@stats.uwo.ca wrote:  - Ways to link from man pages to vignettes.  The reverse would be nice, but it's not possible with the current design, so that would be far off. If feasible I would like to be able to link to any text, html or pdf

Re: [Rd] A couple of suggestions: source function (package base)

2009-09-22 Thread Gabor Grothendieck
I would find that useful too particularly for running long output from Stangle. On Mon, Sep 21, 2009 at 9:22 PM, Jose Claudio Faria joseclaudio.fa...@gmail.com wrote: Hi, I've been calling the function source (package base) from Tinn-R editor to send files, marked blocks and selections to R

Re: [Rd] Rcmdr package dependencies

2009-09-22 Thread Gabor Grothendieck
Create a package called RcmdrInstall, say, with no content and have it depend on Rcmdr. RcmdrInstall would have all packages as dependencies while Rcmdr would only have the essential packages as dependencies. Install RcmdrInstall. That would also force Rcmdr to be installed. Now issue:

Re: [Rd] Rcmdr package dependencies

2009-09-22 Thread Gabor Grothendieck
- From: Gabor Grothendieck [mailto:ggrothendi...@gmail.com] Sent: September-22-09 2:32 PM To: John Fox Cc: r-devel@r-project.org Subject: Re: [Rd] Rcmdr package dependencies Create a package called RcmdrInstall, say, with no content and have it depend on Rcmdr.  RcmdrInstall would have all

Re: [Rd] what should names(x) be padded with when length(x) is increased?

2009-09-18 Thread Gabor Grothendieck
The graphviz site, itself, lists resources/alternatives here: http://www.graphviz.org/Resources.php On Fri, Sep 18, 2009 at 6:34 PM, William Dunlap wdun...@tibco.com wrote: R version 2.10.0 Under development (unstable) (2009-09-08 r49628) Here are two somewhat related questions. First, when

[Rd] Windows Source Install Without Rtools

2009-09-17 Thread Gabor Grothendieck
Regarding this from this week: 2.10.0 PACKAGE INSTALLATION (Windows) It is possible to install source packages without Rtools provided they have no compiled code and no configure.win or cleanup.win script. - what are the instructions to perform such a source install? - I assume one still needs

Re: [Rd] Windows Source Install Without Rtools

2009-09-17 Thread Gabor Grothendieck
Thanks. Perhaps someone in the core group can still provide explicit information on how to install such a package. On Thu, Sep 17, 2009 at 12:19 PM, Dirk Eddelbuettel e...@debian.org wrote: On 17 September 2009 at 11:32, Gabor Grothendieck wrote: | Regarding this from this week: | | 2.10.0

Re: [Rd] Windows Source Install Without Rtools

2009-09-17 Thread Gabor Grothendieck
Note that that is not currently the recommended way. Also, what comes after INSTALL? The source .tar.gz name? The pathname to the source directory? On Thu, Sep 17, 2009 at 3:58 PM, Simon Urbanek simon.urba...@r-project.org wrote: On Sep 17, 2009, at 12:43 , Gabor Grothendieck wrote: Thanks

Re: [Rd] Windows Source Install Without Rtools

2009-09-17 Thread Gabor Grothendieck
Maybe on other platforms but on Windows help does not get linked properly with all variations. On Thu, Sep 17, 2009 at 4:27 PM, Simon Urbanek simon.urba...@r-project.org wrote: On Sep 17, 2009, at 16:09 , Gabor Grothendieck wrote: Note that that is not currently the recommended way. Now

Re: [Rd] Windows Source Install Without Rtools

2009-09-17 Thread Gabor Grothendieck
:55 PM, Duncan Murdoch wrote: On 17/09/2009 4:40 PM, Gabor Grothendieck wrote: Maybe on other platforms but on Windows help does not get linked properly with all variations. I think you are thinking of building binaries, not installing packages.  Generally the only variation we advise against

Re: [Rd] Windows Source Install Without Rtools

2009-09-17 Thread Gabor Grothendieck
be helpful to have comments on what now works best on Windows with the new change. On Thu, Sep 17, 2009 at 6:32 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: Gabor Grothendieck wrote: Does that mean that   Rcmd INSTALL --binary myPackage/ is still ok or should one use: No, that has never worked

Re: [Rd] Non-GPL packages for R

2009-09-11 Thread Gabor Grothendieck
One complication is that its possible that a package can use a non-free component but can also be used without it. The fame package could be used with fame or without fame for a long time but more recently the non-fame portion was factored out into the tis package. The VhayuR package is similar

Re: [Rd] Non-GPL packages for R

2009-09-10 Thread Gabor Grothendieck
The SystemRequirements: field of the DESCRIPTION file normally lists external dependencies whether free or non-free. On Thu, Sep 10, 2009 at 1:50 PM, Prof. John C Nash nas...@uottawa.ca wrote: Subject: Non-GPL packages for R Packages that are not licensed in a way that permits re-distribution

[Rd] Needless updating of HTML package descriptions

2009-09-10 Thread Gabor Grothendieck
I recently installed a local package which failed because the package was already loaded; however, then it tried to update all the HTML package descriptions needlessly (since they had not changed due to the failure to install). Since updating the HTML package descriptions can be time consuming

Re: [Rd] Load a package without installing it

2009-09-04 Thread Gabor Grothendieck
This is sufficiently useful that it would be nice to have it as part of R itself. For the moment, perhaps you could make a package of it on CRAN or contribute it to some other existing CRAN package. On Fri, Sep 4, 2009 at 9:39 AM, Hadley Wickhamhad...@rice.edu wrote: Hi all, When developing a

Re: [Rd] Suggestion: Allow packages to add additional information to sessionInfo()

2009-09-03 Thread Gabor Grothendieck
The danger is that it could introduce bugs into the process of reporting bugs. On Thu, Sep 3, 2009 at 1:05 PM, Henrik Bengtssonh...@stat.berkeley.edu wrote: Hi, sessionInfo() has been proven really useful, but you still often have to ask for additional information in order to help

Re: [Rd] Including a binary Python Interpreter into a binary R-package for MS Windows

2009-09-01 Thread Gabor Grothendieck
On Tue, Sep 1, 2009 at 5:41 PM, gvst...@yahoo.com wrote: 2009/8/30 Uwe Ligges lig...@statistik.tu-dortmund.de: [snip] Guido van Steen wrote: [snip] Something that interests me too: What about R's policy with respect to including binary files? I saw that developers should include a file

Re: [Rd] c(symbol, symbol) |- expression instead of list

2009-08-27 Thread Gabor Grothendieck
On Thu, Aug 27, 2009 at 6:18 AM, Martin Maechlermaech...@stat.math.ethz.ch wrote: Dear programmeRs, I'm proposing and looking into implementing a small change in R's  c() handling of 'symbol's aka 'name's, and potentially also 'language' parts. The main motivation is transparent

Re: [Rd] c(symbol, symbol) |- expression instead of list

2009-08-27 Thread Gabor Grothendieck
On Thu, Aug 27, 2009 at 8:19 AM, Martin Maechlermaech...@stat.math.ethz.ch wrote: GaGr == Gabor Grothendieck ggrothendi...@gmail.com     on Thu, 27 Aug 2009 07:32:42 -0400 writes:    GaGr On Thu, Aug 27, 2009 at 6:18 AM, Martin    GaGr Maechlermaech...@stat.math.ethz.ch wrote:     Dear

Re: [Rd] Lightweight 'package' idea.

2009-08-21 Thread Gabor Grothendieck
That's nifty. Perhaps it could look into /foo/bar/baz/lib1/*/R in which case one could simply place source packages in /foo/bar/baz/lib1 In fact it would be nice if R had built into it some way of running code in source packages possibly with degraded functionality to ease development, i.e.

Re: [Rd] unnecessary braces?

2009-08-18 Thread Gabor Grothendieck
Just a guess but try writing it on one line without the % symbols. On Mon, Aug 17, 2009 at 6:03 PM, Ben Bolkerbol...@ufl.edu wrote:  the version 2 parser thinks I have unnecessary braces, but I can't find any.  False positive or am I missing something?  If a false positive, is there any way

Re: [Rd] Why is strptime always returning a vector of length 9 ?

2009-08-09 Thread Gabor Grothendieck
Try this to see its components: str(unclass(xd)) List of 9 $ sec : num [1:6] 0 0 0 0 0 0 $ min : int [1:6] 0 0 0 0 0 0 $ hour : int [1:6] 0 0 0 0 0 0 $ mday : int [1:6] 9 31 12 12 30 30 $ mon : int [1:6] 2 4 10 10 6 6 $ year : int [1:6] 107 107 108 108 109 109 $ wday : int [1:6] 5 4 3

Re: [Rd] odbcConnectExcel on non-Windows?

2009-08-09 Thread Gabor Grothendieck
Instead of writing out an xls file you could write out a file in any format that Excel can read, e.g. csv, with a suitable renaming of your function. On Sun, Aug 9, 2009 at 1:04 PM, spencergspencer.gra...@prodsyse.com wrote: Hello:     What should I do regarding code to write an Excel file in

Re: [Rd] identical(0, -0)

2009-08-08 Thread Gabor Grothendieck
On Sat, Aug 8, 2009 at 10:39 AM, Prof. John C Nashnas...@uottawa.ca wrote: I would urge inclusion in the documentation of the +0, -0 example(s) if there is NOT a way in R to distinguish these. There are occasions where it For single numbers try this: x - +0 y - -0 identical(x, y)

Re: [Rd] How to use formulas for multivariate clustered data?

2009-07-28 Thread Gabor Grothendieck
Have a look at the source code for the Formula package. On Tue, Jul 28, 2009 at 12:58 PM, Klaus Nordhausenklaus.nordhau...@uta.fi wrote: Dear R experts, I wrote already a couple of weeks ago but did not get any reply. Therefore I'll rephrase my question and hope some of you can give me some

Re: [Rd] Number of functions, data sets, ..., in a package?

2009-07-09 Thread Gabor Grothendieck
On Thu, Jul 9, 2009 at 10:33 AM, spencergspencer.gra...@prodsyse.com wrote: Hello:     How can one get the number of functions and data sets in a package?     I've written a function PackageSum2 to get an extended package summary for an installed package.  I get much of what I want from the

Re: [Rd] Changing text in a tkentry widget

2009-07-09 Thread Gabor Grothendieck
I assume that what is wanted is that Anonymous should change to changed name when the Change button is pressed. In that case enter this and then press the Change button at which point Anonymous should change to changed name. library(tcltk) tt - tktoplevel() Name - tclVar(Anonymous) entry.Name

Re: [Rd] V2.9.0 changes [Sec=Unclassified]

2009-07-02 Thread Gabor Grothendieck
On Thu, Jul 2, 2009 at 1:37 AM, Troy Robertsontroy.robert...@aad.gov.au wrote: Well... My performance problems were in the pass-by-value semantics of R. I have just changed my classes to inherit from .environment and then moved data members from S4 slots to the .xData objects as Martin

Re: [Rd] OOP performance, was: V2.9.0 changes

2009-07-02 Thread Gabor Grothendieck
In terms of performance if you want the fastest performance in R go with S3 and if you want even faster performance rewrite your inner loops in C. All the other approaches will usually be slower. Also S3 is simple, elegant and will result in less code and take you much less time to design,

Re: [Rd] install.packages with R 2.9.1 under Vista?

2009-07-01 Thread Gabor Grothendieck
I use a different editor so I only have general comments but regardless of editor it would be best to keep and use the library in your user space to avoid any problems with permissions on Vista. Note that this is the same problem as on UNIX where you need root permissions to modify the R library

Re: [Rd] Robust, platform independent method to check for python

2009-06-27 Thread Gabor Grothendieck
If you can assume its on your path then try this: pth - sapply(strsplit(Sys.getenv(PATH), ;), function(x) file.path(x, python.exe, fsep = \\)) pth[file.exists(pth)][1] On Sat, Jun 27, 2009 at 11:44 AM, Carlos J. Gil Bellostac...@datanalytics.com wrote: Hello, I have been unsuccessfully

Re: [Rd] Robust, platform independent method to check for python

2009-06-27 Thread Gabor Grothendieck
I think that most python installations won't have a registry key set. I have python 2.6 and 2.5 on my machine but searching the registry found no occurrence of the string python. At least the path method has the advantage that if its not set then the user only has to modify the path whereas if

Re: [Rd] loadNamespace and useDynLib

2009-06-24 Thread Gabor Grothendieck
I've also experienced this problem with RGraphviz and suggest you expand the message to: Graphviz version x found at c:\...whatever...\graphviz.dll but version y found at http://whatever required. Another approach would be to check that the file size, file name, checksum or some other attribute

Re: [Rd] Special characters in Rd example section will cause errors

2009-06-20 Thread Gabor Grothendieck
I've noticed this as well. I recently had a % in an Rd file that caused me problems. On Sat, Jun 20, 2009 at 10:18 AM, Yihui Xiexieyi...@gmail.com wrote: Hi (Duncan?), The other day I noticed some characters will cause errors in R CMD CHECK because of parse_Rd(), and AFAIK, these chars

[Rd] read.csv

2009-06-14 Thread Gabor Grothendieck
If read.csv's colClasses= argument is NOT used then read.csv accepts double quoted numerics: 1: read.csv(stdin()) 0: A,B 1: 1,1 2: 2,2 3: A B 1 1 1 2 2 2 However, if colClasses is used then it seems that it does not: read.csv(stdin(), colClasses = numeric) 0: A,B 1: 1,1 2: 2,2 3: Error in

Re: [Rd] read.csv

2009-06-14 Thread Gabor Grothendieck
On Sun, Jun 14, 2009 at 4:21 PM, Ted Hardingted.hard...@manchester.ac.uk wrote: Or am I missing something?!! The point of this is that the current behavior is not desirable since you can't have quoted numeric fields if you specify colClasses = numeric yet you can if you don't. The concepts are

Re: [Rd] bundle deprecation

2009-06-12 Thread Gabor Grothendieck
Perhaps you could have a package called BACCO with no contents rather but lists the components of the bundle as dependencies. Then package.install(BACCO) would still install all the components. On Fri, Jun 12, 2009 at 9:36 AM, Robin Hankinrk...@cam.ac.uk wrote: Hi I read that bundles are to

Re: [Rd] Rprof loses all system() time

2009-06-12 Thread Gabor Grothendieck
You could run proc.time() before and after each system call. x - proc.time() # do something y - proc.time() y - x On Fri, Jun 12, 2009 at 5:31 PM, Andrew Piskorskia...@piskorski.com wrote: Rprof seems to ignore all time spent inside system() calls.  E.g., this simple example actually takes

Re: [Rd] Reduce: extra args wishlist?

2009-06-10 Thread Gabor Grothendieck
If ... is not available you can get a minor reduction using fn$ in gsubfn. Any function call prefaced by fn$ allows the use of formulas as functions (and perl-like interpolation of strings) in the call args (subject to certain rules that determine which args are interpreted and which not). The

Re: [Rd] Show location of workspace image on quit?

2009-06-05 Thread Gabor Grothendieck
On Fri, Jun 5, 2009 at 9:43 AM, Wacek Kusnierczykwaclaw.marcin.kusnierc...@idi.ntnu.no wrote: Mathieu Ribatet wrote: I guess that having something like this q() Save workspace image (/home/me/workspace/.RData)? [y/n/c/e]: where e means Editing the path should be clear enought, isn't it?

Re: [Rd] Show location of workspace image on quit?

2009-06-05 Thread Gabor Grothendieck
On Fri, Jun 5, 2009 at 11:52 AM, Barry Rowlingsonb.rowling...@lancaster.ac.uk wrote: On Fri, Jun 5, 2009 at 3:01 PM, Gabor Grothendieckggrothendi...@gmail.com wrote: Save workspace to /home/me/workspace/.RData? [ y(es) / (n(o) / c(ancel) / o(ther) ]:  Quitting emacs produces this: Save

Re: [Rd] proposed changes to RSiteSearch

2009-06-04 Thread Gabor Grothendieck
On Thu, Jun 4, 2009 at 1:58 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: spencerg wrote: Hello All:      What do you think of adding a function RSiteSeach to the package of that name, masking the RSiteSearch function in utils, trapping any call RSiteSearch('searchstring', 'function') to

Re: [Rd] proposed changes to RSiteSearch

2009-06-04 Thread Gabor Grothendieck
On Thu, Jun 4, 2009 at 12:13 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: Gabor Grothendieck wrote: On Thu, Jun 4, 2009 at 1:58 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: spencerg wrote: Hello All:     What do you think of adding a function RSiteSeach to the package

Re: [Rd] proposed changes to RSiteSearch

2009-06-04 Thread Gabor Grothendieck
On Thu, Jun 4, 2009 at 1:38 PM, spencerg spencer.gra...@prodsyse.com wrote: Gabor Grothendieck wrote: On Thu, Jun 4, 2009 at 12:13 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: Gabor Grothendieck wrote: On Thu, Jun 4, 2009 at 1:58 AM, Duncan Murdoch murd...@stats.uwo.ca wrote

Re: [Rd] proposed changes to RSiteSearch

2009-06-03 Thread Gabor Grothendieck
Having RSiteSearch.function be a strict superset of RSiteSearch might make sense but giving them the same name seems too heavy handed unless done via OO which seems not applicable here since R's version is not generic and the two use the same class, character, anyways. On Wed, Jun 3, 2009 at 5:37

Re: [Rd] proposed changes to RSiteSearch

2009-06-03 Thread Gabor Grothendieck
we (I) might add other engines, would it make sense to have a more generic name, ... something like web.search, doc.search, ... Gabor Grothendieck wrote: Having RSiteSearch.function be a strict superset of RSiteSearch might make sense but giving them the same name seems too heavy handed

Re: [Rd] degraded performance with rank()

2009-05-30 Thread Gabor Grothendieck
On Sat, May 30, 2009 at 10:58 AM, Tim Bergsma t...@metrumrg.com wrote: Hi. I'm maintaining a package that creates an object that is essentially a classed version of numeric.  I updated recently from 2.7.1 to 2.9.0, and merges involving my class suddenly took a huge performance hit. I've

Re: [Rd] Strange install key for R

2009-05-23 Thread Gabor Grothendieck
2009/5/23 Uwe Ligges lig...@statistik.tu-dortmund.de: Gabor Grothendieck wrote: One user of my batchfiles http://batchfiles.googlecode.com found they did not find the R registry key because it mysteriously was at hklm\software\wow6432Node.   The system was a 64 bit system. I've always

[Rd] Strange install key for R

2009-05-22 Thread Gabor Grothendieck
One user of my batchfiles http://batchfiles.googlecode.com found they did not find the R registry key because it mysteriously was at hklm\software\wow6432Node. The system was a 64 bit system. I've always seen the key at hklm\software\R-core\R which is what the batchfiles assume. Has there been

Re: [Rd] Automatic Differentiation for R

2009-05-19 Thread Gabor Grothendieck
On Tue, May 19, 2009 at 9:08 AM, Martin Maechler maech...@stat.math.ethz.ch wrote: [MM stumbling over on old thread ... he'd be interested] GaGr == Gabor Grothendieck ggrothendi...@gmail.com     on Wed, 15 Apr 2009 09:53:18 -0400 writes:    GaGr Not sure if this is sufficient for your needs

Re: [Rd] Qs: The list of arguments, wrapping functions...

2009-05-19 Thread Gabor Grothendieck
match.call() will return the call. merge.zoo in the zoo package uses it if you need an example. as.list(match.call()) will return a list. list(...) will return the ... arguments as a list. $.proto in the proto package allows one to write p$f where p is a proto object and f is a function and

Re: [Rd] readBin on binary non-blocking connections (Windows Unix differences/bugs)

2009-05-18 Thread Gabor Grothendieck
Ryacas uses non-blocking sockets and works across all platforms but uses readLines/writeLines, rather than readBin, to communicate with yacas. You could look at its source code in case it brings anything to mind. On Mon, May 18, 2009 at 1:40 PM, Jeff Ryan jeff.a.r...@gmail.com wrote: R-devel:

[Rd] Mac and tcltk

2009-05-15 Thread Gabor Grothendieck
Does the Mac version of R include tcltk? There is a section in the R Mac FAQ: http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html#TclTk-issues about tcltk issues on R for Mac but its not clear to me from this whether tcltk is or is not included and I don't have a Mac to try it out.

Re: [Rd] Improve aggregate.default ...?

2009-05-09 Thread Gabor Grothendieck
Try this: aggregate(dat[A], dat[Group], mean) Group A 1 1 0.4944810 2 2 0.4765412 3 3 0.4521068 4 4 0.4989000 On Sat, May 9, 2009 at 8:14 AM, Gavin Simpson gavin.simp...@ucl.ac.uk wrote: Hi, I find it a bit annoying that aggregate.default forces the returned object

Re: [Rd] incorrect output and segfaults from sprintf with %*d (PR#13667)

2009-04-27 Thread Gabor Grothendieck
On Fri, Apr 24, 2009 at 6:45 AM, maech...@stat.math.ethz.ch wrote: Yes, the documentation will also have to be amended, but apart from that, would people see a big problem with the 8192 limit which now is suddenly of greater importance {{as I said all along;  hence my question to Wacek (and

Re: [Rd] License status of CRAN packages

2009-04-24 Thread Gabor Grothendieck
On Fri, Apr 24, 2009 at 11:44 AM, Ben Goodrich goodr...@fas.harvard.edu wrote: Kurt Hornik wrote: AGPL, unfortunately, allows supplements, and hence cannot fully be standardized.  We've been thinking about extending the current scheme to indicate a base license plus supplements, but this is

Re: [Rd] Closed-source non-free ParallelR ?

2009-04-23 Thread Gabor Grothendieck
On Thu, Apr 23, 2009 at 1:41 PM, Friedrich Leisch friedrich.lei...@stat.uni-muenchen.de wrote: On Thu, 23 Apr 2009 00:36:48 +0100, Matthew Dowle (MD) wrote: [...]   Could someone from the R Foundation or the FSF step in and clarify the   situation please ? Just a short clarification (by

<    1   2   3   4   5   6   7   8   9   10   >