Re: [Rd] Capturing environment associated with a promise

2012-10-08 Thread Gabor Grothendieck
On Mon, Oct 8, 2012 at 9:22 AM, Hadley Wickham wrote: > Hi all, > > It's possible to capture the expression associated with a promise > (using substitute). Is there any way to capture the environment > associated with a promise? Similarly, is there any way to tell if > something is a promise with

Re: [Rd] library(tcltk) v. SIGPIPE BUG (?!?)

2012-12-11 Thread Gabor Grothendieck
On Tue, Dec 11, 2012 at 3:14 PM, Cook, Malcolm wrote: > Hi R-devel, tcltk devel, and sqldf devel, > > The transcript below shows how loading the tcl/tk library in under R causes > subprocesses to ignore SIGPIPE. > > I am including the developer of the (wonderful) sqldf package since it > require

[Rd] Rtools216.exe on Windows

2012-12-18 Thread Gabor Grothendieck
1. If your PATH is very long then on the Select Additional Tasks screen in the Rtools installer the two check box titles (Edit the system PATH and Save version number) will be obscured (i.e. you won't be able to see them at all) making the screen very confusing. One just sees two boxes on the left

Re: [Rd] weird bug with parallel, RSQlite and tcltk

2013-01-03 Thread Gabor Grothendieck
On Thu, Jan 3, 2013 at 4:32 AM, Karl Forner wrote: > Hello, > > The point is that I do not use tcltk, it gets loaded probably as a > dependency of a dependency of a package. > When I unload it all work perfectly fine. I just found it because one > of my computer did not have tk8.5 installed, and d

Re: [Rd] weird bug with parallel, RSQlite and tcltk

2013-01-03 Thread Gabor Grothendieck
On Thu, Jan 3, 2013 at 5:59 AM, peter dalgaard wrote: > > On Jan 3, 2013, at 10:32 , Karl Forner wrote: > >> Hello, >> >> The point is that I do not use tcltk, it gets loaded probably as a >> dependency of a dependency of a package. >> When I unload it all work perfectly fine. I just found it beca

Re: [Rd] weird bug with parallel, RSQlite and tcltk

2013-01-03 Thread Gabor Grothendieck
On Thu, Jan 3, 2013 at 7:45 AM, peter dalgaard wrote: > > On Jan 3, 2013, at 12:20 , Gabor Grothendieck wrote: > >> On Thu, Jan 3, 2013 at 5:59 AM, peter dalgaard wrote: >>> >>> On Jan 3, 2013, at 10:32 , Karl Forner wrote: >>> >>>> Hello, &

[Rd] Tricking Promises into Sending Info Via Args into Caller

2013-01-12 Thread Gabor Grothendieck
The is.pos function below results in the variable, out, being set to TRUE if the first argument to is.pos is positive and to FALSE otherwise. It does this without using the return value or using scoping tricks to reach into the caller. Instead it tricks the promise into communicating one bit of i

[Rd] Creating ref class with same name as S4 class results in error

2013-01-29 Thread Gabor Grothendieck
It seems that if one overwrites an S4 class with a Reference Class of the same name that one gets an error in the situation below. I would have expected that the Reference Class would replace the S4 class in such a way that one could now use the Reference Class. > A <- setClass("A", representation

[Rd] RSetReg.exe

2013-02-16 Thread Gabor Grothendieck
R.exe, Rgui.exe, Rcmd.exe and Rscript.exe all support the --help argument but RSetReg.exe --help ignores the argument and attempts to set the registry key. Since one might try this as a first attempt to figure out what the command is all about this seems a bit dangerous. It would be nice if it res

Re: [Rd] Return value of S4 validity function

2013-02-28 Thread Gabor Grothendieck
On Thu, Feb 28, 2013 at 3:44 PM, Gabor Grothendieck wrote: > This issues a message about a needing to be non-negative as expected: > > setClass("A", > representation = list(a = "numeric"), > prototype = list(a = 0), > validity = function(object) { >

[Rd] Return value of S4 validity function

2013-02-28 Thread Gabor Grothendieck
This issues a message about a needing to be non-negative as expected: setClass("A", representation = list(a = "numeric"), prototype = list(a = 0), validity = function(object) { out <- if (object@a < 0) "a must be non-negative" if (is.null(out)) TRUE else out ## }) new("A", a = -1)

Re: [Rd] Documentation error in subsitute

2013-04-03 Thread Gabor Grothendieck
On Wed, Apr 3, 2013 at 10:38 AM, Hadley Wickham wrote: > Hi all, > > The documentation for substitute currently reads: > > Substitution takes place by examining each component of the parse > tree as follows: If it is not a bound symbol in ‘env’, it is > unchanged. If it is a promise object, i.e.,

Re: [Rd] R 3.0, Rtools3.0,l Windows7 64-bit, and permission agony

2013-04-19 Thread Gabor Grothendieck
the correct binary into >> (setq-default inferior-R-program-name 'FULLPATHHERE") >> which will break as soon as I upgrade R (assuming I am foolish enough to >> ever do that again). > > > I can't help you with ESS. > >> >> >> Now I am rea

Re: [Rd] R 3.0, Rtools3.0,l Windows7 64-bit, and permission agony

2013-04-20 Thread Gabor Grothendieck
On Sat, Apr 20, 2013 at 10:45 AM, Hadley Wickham wrote: >>> Just curious: how often do you use the Windows find command? We have put >>> instructions in place for people to run the install process with a renamed >>> Rtools find command (which I think is the only conflict). The issue is that >>>

Re: [Rd] R 3.0, Rtools3.0,l Windows7 64-bit, and permission agony

2013-04-20 Thread Gabor Grothendieck
On Sat, Apr 20, 2013 at 11:49 AM, Duncan Murdoch wrote: > On 13-04-20 11:09 AM, Gabor Grothendieck wrote: >> >> On Sat, Apr 20, 2013 at 10:45 AM, Hadley Wickham >> wrote: >>>>> >>>>> Just curious: how often do you use the Windows find command?

Re: [Rd] R 3.0, Rtools3.0,l Windows7 64-bit, and permission agony

2013-04-20 Thread Gabor Grothendieck
On Sat, Apr 20, 2013 at 1:54 PM, Duncan Murdoch wrote: > On 13-04-20 12:30 PM, Gabor Grothendieck wrote: >> >> On Sat, Apr 20, 2013 at 11:49 AM, Duncan Murdoch >> wrote: >>> >>> On 13-04-20 11:09 AM, Gabor Grothendieck wrote: >>>> >>

Re: [Rd] how to control the environment of a formula

2013-04-20 Thread Gabor Grothendieck
On Sat, Apr 20, 2013 at 1:44 PM, Duncan Murdoch wrote: > On 13-04-19 2:57 PM, Thomas Alexander Gerds wrote: >> >> >> hmm. I have tested a bit more, and found this perhaps more difficult >> solve situation. even though I delete x, since x is part of the output >> of the formula, the size of the obj

Re: [Rd] R 3.0, Rtools3.0,l Windows7 64-bit, and permission agony

2013-04-20 Thread Gabor Grothendieck
On Sat, Apr 20, 2013 at 2:21 PM, Duncan Murdoch wrote: > On 13-04-20 2:02 PM, Kevin Coombes wrote: >> >> >> On 4/20/2013 12:54 PM, Duncan Murdoch wrote: >>> >>> On 13-04-20 12:30 PM, Gabor Grothendieck wrote: >>>> >>>> On Sat, Apr 2

Re: [Rd] R 3.0, Rtools3.0,l Windows7 64-bit, and permission agony

2013-04-20 Thread Gabor Grothendieck
On Sat, Apr 20, 2013 at 9:13 PM, Hadley Wickham wrote: >> As far as I can tell, the steps you are recommending take place in an >> earlier build step. This would require the user who wants to do this to >> rebuild Rtools in its entirety, which is more trouble than it is likely to >> be worth. Esp

Re: [Rd] R 3.0, Rtools3.0,l Windows7 64-bit, and permission agony

2013-04-21 Thread Gabor Grothendieck
On Sun, Apr 21, 2013 at 8:18 AM, Hadley Wickham wrote: >> The problem is that if you don't just use the PC for running R but use >> it to run other programs too then any program and that utilizes >> Windows batch scripts making use of find.exe or sort.exe likely won't >> work if Rtools is on your

Re: [Rd] R 3.0, Rtools3.0,l Windows7 64-bit, and permission agony

2013-04-21 Thread Gabor Grothendieck
On Sun, Apr 21, 2013 at 9:49 AM, Hadley Wickham wrote: >> Because it can conflict with other Windows software unless you add a >> layer over it. What other popular software that runs on Windows has >> these problems? I can't think of any. The closest I can come up with >> was that for a short t

Re: [Rd] R 3.0, Rtools3.0,l Windows7 64-bit, and permission agony

2013-04-21 Thread Gabor Grothendieck
On Sun, Apr 21, 2013 at 12:57 PM, Hadley Wickham wrote: Because it can conflict with other Windows software unless you add a layer over it. What other popular software that runs on Windows has these problems? I can't think of any. The closest I can come up with was that for

Re: [Rd] R 3.0, Rtools3.0,l Windows7 64-bit, and permission agony

2013-04-21 Thread Gabor Grothendieck
On Sun, Apr 21, 2013 at 1:48 PM, Prof J C Nash (U30A) wrote: > > While as a Linux user who has not so far been banished to Winland I have not > experienced this problem, it seems to be the type of issue where a "how to", > for example, on the R Wiki, would be helpful. Moreover, surely this is a >

Re: [Rd] R 3.0, Rtools3.0,l Windows7 64-bit, and permission agony

2013-04-21 Thread Gabor Grothendieck
On Sun, Apr 21, 2013 at 6:17 PM, Henrik Bengtsson wrote: > I (as well) keep a specific Rsetup.bat file for launching Windows > cmd.exe with the proper PATH etc setup for build R packages etc. It's > only after this thread I gave it a second thought; you can indeed > temporarily set the PATH via ~

Re: [Rd] R 3.0, Rtools3.0,l Windows7 64-bit, and permission agony

2013-04-22 Thread Gabor Grothendieck
On Mon, Apr 22, 2013 at 10:27 AM, Duncan Murdoch wrote: > On 21/04/2013 6:57 PM, Hadley Wickham wrote: >> >> > PS. Hadley, is this what you meant when you wrote "Better solutions >> > (e.g. Rstudio and devtools) temporarily set the path on when you're >> > calling R CMD *.", or those approaches ar

Re: [Rd] proposed changes to RSiteSearch

2009-05-07 Thread Gabor Grothendieck
But help really needs to be delivered with R, not an addon. It should not be necessary to know how to install packages just to get this level of help. I think it needs to be where it is now. On Thu, May 7, 2009 at 4:02 PM, Liaw, Andy wrote: > >  I agree!  Recall, though, I had added the RSiteSear

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 wrote: > Hi, > > I find it a bit annoying that aggregate.default forces the returned > object to loose the '

[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] 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 wrote: > R-devel: > > I am encountering

Re: [Rd] Automatic Differentiation for R

2009-05-19 Thread Gabor Grothendieck
On Tue, May 19, 2009 at 9:08 AM, Martin Maechler wrote: > [MM stumbling over on old thread ... he'd be interested] > >>>>>> "GaGr" == Gabor Grothendieck >>>>>>     on Wed, 15 Apr 2009 09:53:18 -0400 writes: > >    GaGr> Not sure i

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

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

Re: [Rd] Strange install key for R

2009-05-23 Thread Gabor Grothendieck
2009/5/23 Uwe Ligges : > > > 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

Re: [Rd] degraded performance with rank()

2009-05-30 Thread Gabor Grothendieck
On Sat, May 30, 2009 at 10:58 AM, Tim Bergsma 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 traced the probl

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

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

Re: [Rd] proposed changes to RSiteSearch

2009-06-04 Thread Gabor Grothendieck
On Thu, Jun 4, 2009 at 1:58 AM, Duncan Murdoch 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 the

Re: [Rd] proposed changes to RSiteSearch

2009-06-04 Thread Gabor Grothendieck
On Thu, Jun 4, 2009 at 12:13 PM, Duncan Murdoch wrote: > Gabor Grothendieck wrote: >> >> On Thu, Jun 4, 2009 at 1:58 AM, Duncan Murdoch >> wrote: >> >>> >>> spencerg wrote: >>> >>>> >>>> Hello All: >>>> >

Re: [Rd] proposed changes to RSiteSearch

2009-06-04 Thread Gabor Grothendieck
On Thu, Jun 4, 2009 at 1:38 PM, spencerg wrote: > Gabor Grothendieck wrote: >> >> On Thu, Jun 4, 2009 at 12:13 PM, Duncan Murdoch >> wrote: >> >>> >>> Gabor Grothendieck wrote: >>> >>>> >>>> On Thu, Jun 4, 200

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 Kusnierczyk 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? >> > > good idea;  m

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 Rowlingson wrote: > On Fri, Jun 5, 2009 at 3:01 PM, Gabor > Grothendieck wrote: > > >> >> Save workspace to /home/me/workspace/.RData? [ y(es) / (n(o) / >> c(ancel) / o(ther) ]: > >  Quitting emacs produces this: > >

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 LHS

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 Hankin wrote: > Hi > > I read that bundles are to be deprecate

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 Piskorski wrote: > Rprof seems to ignore all time spent inside system() calls.  E.g., > this simple example actually takes about 10 seconds,

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

Re: [Rd] read.csv

2009-06-14 Thread Gabor Grothendieck
On Sun, Jun 14, 2009 at 4:21 PM, Ted Harding 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 not orthogonal but should

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 Xie 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 include '%', '{' > a

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 of

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 Bellosta wrote: > Hello, > > I have been unsuccessfully struggling for a

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

2009-06-27 Thread Gabor Grothendieck
oesn't update PATH, > although the ActiveState Python installer does.  But both > approaches can fail, depending on the options that were > specified when Python was installed. > > Good luck, > > - Steve > > > On Sat, Jun 27, 2009 at 12:01 PM, Gabor > G

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 i

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

2009-07-02 Thread Gabor Grothendieck
On Thu, Jul 2, 2009 at 1:37 AM, Troy Robertson 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 suggested. > Note that

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

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, spencerg 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 object > returned by

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

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 Nordhausen 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 answers or > some adv

Re: [Rd] Checking package on Windows (and seemingly irreproducible errors in CRAN checks)

2009-07-28 Thread Gabor Grothendieck
That's a check error. Did you try running R CMD CHECK on it? Since it appears to happen in an example you could put \dontrun{ ... } around the example although it would be better to get it to the state that it passes R CMD CHECK without having to do that. On Tue, Jul 28, 2009 at 4:31 PM, Carlos

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

2009-08-08 Thread Gabor Grothendieck
On Sat, Aug 8, 2009 at 10:39 AM, Prof. John C Nash 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) && identical(1/x, 1/y) # FA

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, spencerg wrote: > Hello: > >     What should I do regarding code to write an Excel file in a non-Windows > platform?

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 Bolker 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 to > work ar

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] c(, expression instead of list

2009-08-27 Thread Gabor Grothendieck
On Thu, Aug 27, 2009 at 6:18 AM, Martin Maechler 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 programmatic construction of >

Re: [Rd] c(, expression instead of list

2009-08-27 Thread Gabor Grothendieck
On Thu, Aug 27, 2009 at 8:19 AM, Martin Maechler wrote: >>>>>> "GaGr" == Gabor Grothendieck >>>>>>     on Thu, 27 Aug 2009 07:32:42 -0400 writes: > >    GaGr> On Thu, Aug 27, 2009 at 6:18 AM, Martin >    GaGr> Maechler wrote: >  

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, wrote: > 2009/8/30 Uwe Ligges : > [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 > [snip] >> Please do not include binary fi

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 Bengtsson wrote: > Hi, > > sessionInfo() has been proven really useful, but you still often have > to ask for additional information in order to help troubleshooting. > For instanc

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 Wickham wrote: > Hi all, > > When developing a package, it'

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 wrote: > Subject: Non-GPL packages for R > > Packages that are not licensed in a way that permits re-distribution on > CRAN are f

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

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 i

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

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 wrote: > > On 17 September 2009 at 11:32, Gabor Grothendieck wrote: > | Regarding this from this week: > | > |

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 wrote: > > On Sep 17, 2009, at 12:43 , Gabor Grothendieck wrote: > >> Thanks. Perhaps

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 wrote: > On Sep 17, 2009, at 16:09 , Gabor Grothendieck wrote: > >> Note that that is not currently the recommended way. >> >

Re: [Rd] Windows Source Install Without Rtools

2009-09-17 Thread Gabor Grothendieck
, 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,

Re: [Rd] Windows Source Install Without Rtools

2009-09-17 Thread Gabor Grothendieck
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 wrote: > Gabor Grothendieck wrote: >> >> Does that mean that >> >>   Rcmd INSTALL --binary myPackage/ >> >> is still ok or should on

Re: [Rd] Windows Source Install Without Rtools

2009-09-17 Thread Gabor Grothendieck
PM, Gabor Grothendieck wrote: >> >> I meant to write: >> >> Rcmd INSTALL --build myPackage/ >> >> vs. >> >> Rcmd INSTALL myPackage/ >> >> You, yourself, have mentioned the problem of linking help >> pages on r-devel within the las

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 wrote: > R version 2.10.0 Under development (unstable) (2009-09-08 r49628) > > Here are two somewhat related questions. > > First, when we attach a t

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 wrote: > Hi, > > I've been calling the function "source" (package base) from Tinn-R editor to > send files, marked blocks and selections to R interpreter because it

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

Re: [Rd] Rcmdr package dependencies

2009-09-22 Thread Gabor Grothendieck
gt;  John > > >> -Original Message- >> 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 pac

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 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 file in the packag

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

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 simi

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

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 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 documentation whether wi

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 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 else? > The main thin

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

2009-11-01 Thread Gabor Grothendieck
\chrome.exe", x))) ?help.search On Sun, Nov 1, 2009 at 6:18 PM, Peter Ehlers wrote: > Gabor Grothendieck wrote: >> >> On Sun, Nov 1, 2009 at 5:55 PM, Duncan Murdoch >> wrote: >>> >>> What is it that you particularly liked about the CHM help?  One thing it

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 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 to new Window

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 wrote: > On 11/4/2009 12:15 PM, William Dunlap wrote: >>> >>> -Original Message- >>> From: r-devel-boun...@r-project.org >>> [mailto:r-devel-boun...@r-project.o

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, wrote: > Full_Name: William E. Hopkins > Version: 2.9.0 > OS: Windows XP > Submission from: (NULL) (209.244.4.106) > > > textConnection() has quadratic performance. > > A fun

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 wrote: > Hi all, > > > > Another comment re: html help in Windows. It seems that we've lost the > functionality of being able to browse the other func

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 a

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 wrote: > Please note my initial comment that it is hard for newcomers to find > or even know about the existence of NEWS (and worse CHANGES) [

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 wrote: > On 11/13/2009 2:03 PM, Trishank Karthik Kuppusamy wrote: >> >> Greetings everyone, >> >> I have

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

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 wrote: > On 15/11/09 16:35 PM, "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 to b - even if

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 wrote: > As you are sure of the accuracy of your

[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 -- C:\Users\Gabor\Documents/R/w

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