Re: [Rd] Wishlist: write R's bin path to the PATH variable and remove the version string in the installation dir under Windows

2011-05-04 Thread Yihui Xie
1. I know there is not such a thing; that why I said "mimic" and "the same place" ("***/R/bin" instead of "***/R/R-x.x.x/bin"). 2. Yes, I never mess with the PATH variable under *nix, because R is installed to /usr/local/bin/ (or /usr/bin/) *by default*, which is already in the PATH variable. Othe

Re: [Rd] Wishlist: write R's bin path to the PATH variable and remove the version string in the installation dir under Windows

2011-05-04 Thread Yihui Xie
First, you are still able to install multiple versions of R to any places that you want -- I was suggesting a default place to install R under Windows. If you remember the process of installing R under Windows, there is a step in which you can choose where to install R. Second, to modify the PATH

Re: [Rd] Curry: proposed new functional programming, er, function.

2011-05-04 Thread baptiste auguie
Hi, On 5 May 2011 02:56, Duncan Murdoch wrote: > On 04/05/2011 10:40 AM, Ravi Varadhan wrote: >> >> I too would like this (being an Indian!). >> >> Here is an example that came up just yesterday with regards to solving a >> quadrature problem using the "cubature" package.  The adaptIntegrate >> f

Re: [Rd] Reference Classes: replacing '.self' with an .Rda image of '.self' from within a method? (was replacing '.self' with an .Rda image of '.self' from within a method?)

2011-05-04 Thread John Chambers
It makes no sense to replace the .self field: that field is initialized to be a reference to the object. If you change it, it's no longer that reference. There are many things wrong with your example, so it's better to take a very simple version: > mkTest <- setRefClass("test",fields = lis

Re: [Rd] Curry: proposed new functional programming, er, function.

2011-05-04 Thread Ravi Varadhan
Thanks, Hadley. This (i.e., different ways to prepare curry) is quite instructive to me. Best, Ravi. --- Ravi Varadhan, Ph.D. Assistant Professor, Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins University Ph.

Re: [Rd] tkrplot not working in R 2.13.0

2011-05-04 Thread luke-tierney
Thanks -- new version on its way to CRAN. luke On Wed, 4 May 2011, Greg Snow wrote: That works as well, I will suggest it to Luke for the package to use. Thanks, -- Luke Tierney Statistics and Actuarial Science Ralph E. Wareham Professor of Mathematical Sciences University of Iowa

Re: [Rd] How to create vignette.pdf for R-2.13.0?

2011-05-04 Thread cstrato
Dear Simon, I did not complain about the R doing something wrong. I only wanted to know why, after all these years, R CMD check does suddenly no longer build the pdf-files of the vignettes. I also think that this is a legal question. Let me compare the times spent: 1, the "official" develop

[Rd] Reference Classes: replacing '.self' with an .Rda image of '.self' from within a method? (was replacing '.self' with an .Rda image of '.self' from within a method?)

2011-05-04 Thread Janko Thyson
Sorry guys, but I chose a really stupid name before (no "reference classes"). Hope it's okay to re-post. Cheers, Janko >>> ORIGINAL MESSAGE <<< Dear list, Is it possible to update or reassign '.self' with an image of '.self' (e.g. a locally stored .Rda file) from within a method? I know t

Re: [Rd] Wishlist: write R's bin path to the PATH variable and remove the version string in the installation dir under Windows

2011-05-04 Thread Sharpie
Yihui Xie-2 wrote: > > Hi, > > I guess this issue must have been brought forward long time ago, but I > still hope you can consider under Windows (during installation): > > 1. put R's bin path in the PATH variable of the system so that we can > use the commands "R" and "Rscript" more easily; >

Re: [Rd] R CMD check and Suggests Packages

2011-05-04 Thread Hervé Pagès
On 11-05-03 12:43 AM, Martin Maechler wrote: Hervé Pagès on Mon, 02 May 2011 11:55:08 -0700 writes: > Hi, On 11-04-28 07:00 PM, Dario Strbenac wrote: >> Hello, >> >> In my description file, I have an example data package in >> Suggests: that I've deleted from m

Re: [Rd] Error in .Fortran Call

2011-05-04 Thread vioravis
Thanks a lot. I will try the recommended changes. Ravi -- View this message in context: http://r.789695.n4.nabble.com/Error-in-Fortran-Call-tp3495319p3495777.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org maili

Re: [Rd] Wishlist: write R's bin path to the PATH variable and remove the version string in the installation dir under Windows

2011-05-04 Thread Kevin R. Coombes
There are plenty of good reasons for non-developers to run different versions of R. For instance, I care a lot about reproducibility. With every new release of R, lots of things change. With every new release of the packages I use, lots of things change. All of my analyses are performed usin

Re: [Rd] tkrplot not working in R 2.13.0

2011-05-04 Thread Greg Snow
That works as well, I will suggest it to Luke for the package to use. Thanks, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: peter dalgaard [mailto:pda...@gmail.com] > Sent: Wednesday, May 0

Re: [Rd] Wishlist: write R's bin path to the PATH variable and remove the version string in the installation dir under Windows

2011-05-04 Thread Simon Urbanek
On May 4, 2011, at 12:00 PM, Yihui Xie wrote: > My suggestion was to mimic *nix systems: put the executable binaries in the > same place *by default* (e.g. /usr/bin/ or /usr/local/bin). Except that there is not such thing on Windows! The closest to that is the "system" folder which is off limit

Re: [Rd] tkrplot not working in R 2.13.0

2011-05-04 Thread peter dalgaard
On May 4, 2011, at 19:26 , Greg Snow wrote: > It looks like the spaces in the path is the problem, when I run the line > below with shQuote then everything starts working and all is right with the > world again. Just for fun, see if it also works with tcl("load", file, "Rplot") (.Tcl(paste(.

Re: [Rd] tkrplot not working in R 2.13.0

2011-05-04 Thread Greg Snow
It looks like the spaces in the path is the problem, when I run the line below with shQuote then everything starts working and all is right with the world again. Thanks, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -O

Re: [Rd] Curry: proposed new functional programming, er, function.

2011-05-04 Thread Gabor Grothendieck
On Wed, May 4, 2011 at 1:11 PM, Sharpie wrote: > Currently, the only Curry implementation I know of is in the roxygen package > which is kind of a weird dependency to install just for this one function. > Not entirely comparable but the proto package supports currying of proto arguments. For exam

Re: [Rd] Curry: proposed new functional programming, er, function.

2011-05-04 Thread Sharpie
Byron Ellis-2 wrote: > > Hi all (especially R-core) I suppose, > > With the introduction of the new functional programming functions into > base I thought I'd ask for a Curry() function. I use a simple one that > looks this: > > Curry = function(FUN,...) { .orig = list(...);function(...) > do.c

Re: [Rd] Reference Classes: (Was: Accessing methods via [[...]], bug?)

2011-05-04 Thread Hadley Wickham
On Wed, May 4, 2011 at 11:35 AM, John Chambers wrote: > On 5/4/11 9:24 AM, Hadley Wickham wrote: Are you familiar with "Concepts, Techniques, and Models of Computer Programming" by van Roy and Haridi?  That's what really helped me to understand the strengths and weaknesses of t

Re: [Rd] tkrplot not working in R 2.13.0

2011-05-04 Thread Uwe Ligges
On 04.05.2011 17:46, Greg Snow wrote: The tkrplot package is not working in version 2.13.0 for windows. I contacted the maintainer who unfortunately does not have easy access to a windows computer and says that it is working on the other platforms. Greg, if he had access (like I do) he'd

Re: [Rd] tkrplot not working in R 2.13.0

2011-05-04 Thread Prof Brian Ripley
What example are you trying? The code in ?trkplot works for me. However, it looks to me like that piece of advice in the rw-FAQ about no spaces in your path has come back to bite you (I of course do not have such spaces). I think this should be .Tcl(paste("load", shQuote(file), "Rplot")) or

Re: [Rd] Reference Classes: (Was: Accessing methods via [[...]], bug?)

2011-05-04 Thread John Chambers
On 5/4/11 9:24 AM, Hadley Wickham wrote: Are you familiar with "Concepts, Techniques, and Models of Computer Programming" by van Roy and Haridi? That's what really helped me to understand the strengths and weaknesses of the various styles of programming. Thanks, I wasn't. Yes, interesting sim

Re: [Rd] General "nil" reference class object

2011-05-04 Thread John Chambers
Interesting idea. One approach would be to test against the _environment_ of the prototype object in the class definition. Since the initialize method for a reference class must call new.env(), one knows that a real object from the class has a different environment. Using that fact one could

Re: [Rd] Reference Classes: Accessing methods via [[...]], bug?

2011-05-04 Thread Hadley Wickham
>> Are you familiar with "Concepts, Techniques, and Models of Computer >> Programming" by van Roy and Haridi?  That's what really helped me to >> understand the strengths and weaknesses of the various styles of >> programming. > > Thanks, I wasn't.  Yes, interesting similar distinction between func

Re: [Rd] Curry: proposed new functional programming, er, function.

2011-05-04 Thread Hadley Wickham
> Or maybe > >    Curry <- function(FUN, ...) { >      args <- match.call(expand.dots = FALSE)$... >      args$... <- as.name("...") > >      curry_call <- as.call(c(list(as.name("FUN")), args)) >      eval(bquote(function(...) .(curry_call))) >    } Or one more approach: Curry <- function(FU

Re: [Rd] Reference Classes: Accessing methods via [[...]], bug?

2011-05-04 Thread John Chambers
On 5/3/11 2:39 PM, Hadley Wickham wrote: Part of the motivation for the reference classes was to bring a general OOP view to R. One can start from some essential concepts of objects and their properties, inheritance and class definition, as have evolved over a very long time. Next, there is a f

Re: [Rd] Wishlist: write R's bin path to the PATH variable and remove the version string in the installation dir under Windows

2011-05-04 Thread Yihui Xie
My suggestion was to mimic *nix systems: put the executable binaries in the same place *by default* (e.g. /usr/bin/ or /usr/local/bin). Why isn't the default bin path for R under *nix something like /usr/bin/R-2.13.0/? If the users want to install multiple versions, they still have the choice to in

Re: [Rd] Curry: proposed new functional programming, er, function.

2011-05-04 Thread Hadley Wickham
>> # Use of Curry >> adaptIntegrate(Curry(f, a=0.2), lower=0, upper=2) > > Two objections: > > 1.  I don't see how that is preferable to > > adaptIntegrate(function(x) f(x, a=0.2), lower=0, upper=2) It's less typing? A more helpful use is when you have a list of functions: funs <- list(

Re: [Rd] Curry: proposed new functional programming, er, function.

2011-05-04 Thread Hadley Wickham
>> # Use of Curry >> adaptIntegrate(Curry(f, a=0.2), lower=0, upper=2) > > The _concept_ of currying is useful, and maybe more can be done to > provide guidance and education on how to do it, but adding a function > that sometimes works and somesimes does surprising things is not the > way to go.

[Rd] tkrplot not working in R 2.13.0

2011-05-04 Thread Greg Snow
The tkrplot package is not working in version 2.13.0 for windows. I contacted the maintainer who unfortunately does not have easy access to a windows computer and says that it is working on the other platforms. I traced the problem down to the line in the .First.lib function: .Tcl(paste("load"

Re: [Rd] Wishlist: write R's bin path to the PATH variable and remove the version string in the installation dir under Windows

2011-05-04 Thread Yihui Xie
In terms of a personal use, that is absolutely fine. From the perspective of a developer, you cannot stop a user from upgrading to newer versions. Perhaps it is a matter of personal taste; I'm worried more about adapting to latest versions than maintaining old versions. If the new versions works fi

Re: [Rd] Wishlist: write R's bin path to the PATH variable and remove the version string in the installation dir under Windows

2011-05-04 Thread Gabor Grothendieck
On Wed, May 4, 2011 at 10:53 AM, Ted Byers wrote: >> -Original Message- >> From: r-devel-boun...@r-project.org [mailto:r-devel-bounces@r- >> project.org] On Behalf Of Gabor Grothendieck >> Sent: May-04-11 10:35 AM >> To: Duncan Murdoch >> Cc: R-devel >> Subject: Re: [Rd] Wishlist: write R'

Re: [Rd] Wishlist: write R's bin path to the PATH variable and remove the version string in the installation dir under Windows

2011-05-04 Thread Gabor Grothendieck
On Wed, May 4, 2011 at 11:15 AM, Yihui Xie wrote: > If I am already able to open R, there is no need to post the request > here. I want to be able to run R without knowing where it is from > another software package. Your batch files fit in this purpose, and > the only problem is it is a little bi

Re: [Rd] Wishlist: write R's bin path to the PATH variable and remove the version string in the installation dir under Windows

2011-05-04 Thread Yihui Xie
If I am already able to open R, there is no need to post the request here. I want to be able to run R without knowing where it is from another software package. Your batch files fit in this purpose, and the only problem is it is a little bit slower since it takes time to look for R in the system vi

Re: [Rd] Curry: proposed new functional programming, er, function.

2011-05-04 Thread luke-tierney
On Wed, 4 May 2011, Ravi Varadhan wrote: I too would like this (being an Indian!). I would not. Here is an example that came up just yesterday with regards to solving a quadrature problem using the "cubature" package. The adaptIntegrate function does not allow additional arguments via ...

Re: [Rd] Curry: proposed new functional programming, er, function.

2011-05-04 Thread Gabor Grothendieck
On Wed, May 4, 2011 at 10:40 AM, Ravi Varadhan wrote: > I too would like this (being an Indian!). > > Here is an example that came up just yesterday with regards to solving a > quadrature problem using the "cubature" package.  The adaptIntegrate function > does not allow additional arguments via

Re: [Rd] Curry: proposed new functional programming, er, function.

2011-05-04 Thread Duncan Murdoch
On 04/05/2011 10:40 AM, Ravi Varadhan wrote: I too would like this (being an Indian!). Here is an example that came up just yesterday with regards to solving a quadrature problem using the "cubature" package. The adaptIntegrate function does not allow additional arguments via ... Uwe suggest

Re: [Rd] Wishlist: write R's bin path to the PATH variable and remove the version string in the installation dir under Windows

2011-05-04 Thread Ted Byers
> -Original Message- > From: r-devel-boun...@r-project.org [mailto:r-devel-bounces@r- > project.org] On Behalf Of Gabor Grothendieck > Sent: May-04-11 10:35 AM > To: Duncan Murdoch > Cc: R-devel > Subject: Re: [Rd] Wishlist: write R's bin path to the PATH variable and remove > the version s

Re: [Rd] Recursive objects

2011-05-04 Thread Michael Sumner
Fortune! On Wed, May 4, 2011 at 11:24 PM, Barry Rowlingson < b.rowling...@lancaster.ac.uk> wrote: > On Wed, May 4, 2011 at 2:21 PM, Hadley Wickham wrote: > > > Any hints as to what to search for? > > For recursive objects, search for recursive objects. > > Barry > >

Re: [Rd] Curry: proposed new functional programming, er, function.

2011-05-04 Thread Ravi Varadhan
I too would like this (being an Indian!). Here is an example that came up just yesterday with regards to solving a quadrature problem using the "cubature" package. The adaptIntegrate function does not allow additional arguments via ... Uwe suggested a work around, but `Curry' would solve it ni

Re: [Rd] Wishlist: write R's bin path to the PATH variable and remove the version string in the installation dir under Windows

2011-05-04 Thread Gabor Grothendieck
On Wed, May 4, 2011 at 8:11 AM, Duncan Murdoch wrote: > On 11-05-03 11:25 PM, Yihui Xie wrote: >> >> 1. "Few Windows users use these commands" does not imply they are not >> useful, and I have no idea how many Windows users really use them. How >> do you run "R CMD build" when you build R packages

Re: [Rd] Curry: proposed new functional programming, er, function.

2011-05-04 Thread Hadley Wickham
I thought I might bring this up again - it now seems like Curry would be a natural fit with Reduce, Filter, Find, Map, Negate and Position. Any chance we might see this in a future version of R? Hadley On Thu, Nov 1, 2007 at 2:00 PM, Byron Ellis wrote: > Hi all (especially R-core) I suppose, > >

Re: [Rd] R CMD check and Suggests Packages

2011-05-04 Thread Simon Urbanek
In current R it is described in R-ints instead: http://r.research.att.com/man/R-ints.html#Tools But don't ask me about the rationale. That said, you can search all manuals in Google by simply using foo site:http://r.research.att.com/man/ where "foo" is your query Cheers, S On May 4, 2011,

Re: [Rd] Recursive objects

2011-05-04 Thread Hadley Wickham
On Wed, May 4, 2011 at 8:24 AM, Barry Rowlingson wrote: > On Wed, May 4, 2011 at 2:21 PM, Hadley Wickham wrote: > >> Any hints as to what to search for? > >  For recursive objects, search for recursive objects. Well, I was hoping Luke was meaning discussions about computing on the language more

Re: [Rd] Capturing the complete unevaluated expression corresponding to function (body + formals)

2011-05-04 Thread Hadley Wickham
On Wed, May 4, 2011 at 8:07 AM, Duncan Murdoch wrote: > On 04/05/2011 8:38 AM, Hadley Wickham wrote: >> >> Hi all, >> >> Is there any way to capture the complete unevaluated expression >> corresponding to a function?  I want the equivalent of >> >> x<- quote(function(x) x = 3) >> >> But captured a

Re: [Rd] Recursive objects

2011-05-04 Thread Barry Rowlingson
On Wed, May 4, 2011 at 2:21 PM, Hadley Wickham wrote: > Any hints as to what to search for? For recursive objects, search for recursive objects. Barry __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Recursive objects

2011-05-04 Thread Hadley Wickham
> I never use is.recursive/is.atomic because the definition they use for > an object to be recursive doesn't usually coincide with what I am > interested in. (If you want to know what that definition is you can > look at the source code, coerce.c:1790.) In computing on the language I > would want o

[Rd] General "nil" reference class object

2011-05-04 Thread Jon Clayden
Dear John and others, I've been wondering about whether there's any way to indicate a "nil" reference class object, which will represent "no value", and be tested for, but not fail the internal type checking. NULL is the obvious choice (or seems so to me), but can only be used if an explicit class

Re: [Rd] Capturing the complete unevaluated expression corresponding to function (body + formals)

2011-05-04 Thread Duncan Murdoch
On 04/05/2011 8:38 AM, Hadley Wickham wrote: Hi all, Is there any way to capture the complete unevaluated expression corresponding to a function? I want the equivalent of x<- quote(function(x) x = 3) But captured after the function is created. Body and formals each captures a part, but is th

Re: [Rd] Recursive objects

2011-05-04 Thread luke-tierney
I never use is.recursive/is.atomic because the definition they use for an object to be recursive doesn't usually coincide with what I am interested in. (If you want to know what that definition is you can look at the source code, coerce.c:1790.) In computing on the language I would want one notion

Re: [Rd] Error in .Fortran Call

2011-05-04 Thread Simone Giannerini
add IMPLICIT NONE DOUBLE PRECISION X(N),XMEAN INTEGER N,J to your subroutine. Ciao Simone P.S. It is best to include IMPLICIT NONE in all of your subroutines and to avoid underscores in subroutines' names. On Wed, May 4, 2011 at 2:26 PM, vioravis wrote: > I have the following FORTRAN code

Re: [Rd] Error in .Fortran Call

2011-05-04 Thread Duncan Murdoch
On 04/05/2011 8:26 AM, vioravis wrote: I have the following FORTRAN code converted to a DLL: ! my_xmean.f90 ! ! FUNCTIONS/SUBROUTINES exported from my_function.dll: ! my_function - subroutine ! subroutine my_xmean(X,N,XMEAN) ! Expose subroutine my_function to users of this DLL ! !DEC$ ATTRIBUTE

Re: [Rd] Recursive objects

2011-05-04 Thread Hadley Wickham
Thanks to you both for reminding me about those important recursive objects! Hadley On Wed, May 4, 2011 at 7:49 AM, peter dalgaard wrote: > > On May 4, 2011, at 14:35 , Kenn Konstabel wrote: > >> On Wed, May 4, 2011 at 3:26 PM, Hadley Wickham wrote: >>> Hi all, >>> >>> Does anyone have a compreh

Re: [Rd] Recursive objects

2011-05-04 Thread peter dalgaard
On May 4, 2011, at 14:35 , Kenn Konstabel wrote: > On Wed, May 4, 2011 at 3:26 PM, Hadley Wickham wrote: >> Hi all, >> >> Does anyone have a comprehensive list of recursive-type objects in R? >> is.recursive defines them as by exclusion: "most types of objects are >> regarded as recursive, exce

[Rd] Capturing the complete unevaluated expression corresponding to function (body + formals)

2011-05-04 Thread Hadley Wickham
Hi all, Is there any way to capture the complete unevaluated expression corresponding to a function? I want the equivalent of x <- quote(function(x) x = 3) But captured after the function is created. Body and formals each captures a part, but is there a built in way to get the whole thing? f

Re: [Rd] Recursive objects

2011-05-04 Thread Kenn Konstabel
On Wed, May 4, 2011 at 3:26 PM, Hadley Wickham wrote: > Hi all, > > Does anyone have a comprehensive list of recursive-type objects in R? > is.recursive defines them as by exclusion: "most types of objects are > regarded as recursive, except for  vector types, ‘NULL’ and symbols > (as given by ‘as

[Rd] Error in .Fortran Call

2011-05-04 Thread vioravis
I have the following FORTRAN code converted to a DLL: ! my_xmean.f90 ! ! FUNCTIONS/SUBROUTINES exported from my_function.dll: ! my_function - subroutine ! subroutine my_xmean(X,N,XMEAN) ! Expose subroutine my_function to users of this DLL ! !DEC$ ATTRIBUTES DLLEXPORT,C,REFERENCE,ALIAS:'my_xmean_

[Rd] proposal for package that creates the isomarginal family of two-way contingency tables

2011-05-04 Thread Frank Technow
Hello, I developed R code to create the isomarginal family of two-way contingency tables. The isomarginal family are all possible tables given fixed margins. It is needed for computing exact test statistics for two-way contingency tables in frequentist statistics. I need it for computing a no

[Rd] Recursive objects

2011-05-04 Thread Hadley Wickham
Hi all, Does anyone have a comprehensive list of recursive-type objects in R? is.recursive defines them as by exclusion: "most types of objects are regarded as recursive, except for vector types, ‘NULL’ and symbols (as given by ‘as.name’)." I think this that means recursive objects are: * list

Re: [Rd] Wishlist: write R's bin path to the PATH variable and remove the version string in the installation dir under Windows

2011-05-04 Thread Duncan Murdoch
On 11-05-03 11:25 PM, Yihui Xie wrote: 1. "Few Windows users use these commands" does not imply they are not useful, and I have no idea how many Windows users really use them. How do you run "R CMD build" when you build R packages under Windows? You don't write "C:/Program Files/R/R-2.13.0/bin/i3

Re: [Rd] R CMD check and Suggests Packages

2011-05-04 Thread Dario Strbenac
Original message >Date: Wed, 4 May 2011 09:44:14 +0200 >From: Martin Maechler >Subject: Re: [Rd] R CMD check and Suggests Packages >To: >Cc: Martin Maechler , Hervé Pagès >, > export _R_CHECK_FORCE_SUGGESTS_=false Curiously, that option isn't found in the current R-exts manual

Re: [Rd] R CMD check and Suggests Packages

2011-05-04 Thread Martin Maechler
> Dario Strbenac > on Wed, 4 May 2011 10:00:07 +1000 writes: > Hello, >> If Dario really uses R 2.13.0 (or newer), >> and he gets the above error message for a package that is not >> required but only suggested, >> I think we'd need a clear, ideally simple, >>

Re: [Rd] Wishlist: write R's bin path to the PATH variable and remove the version string in the installation dir under Windows

2011-05-04 Thread Martin Maechler
> Wincent > on Wed, 4 May 2011 13:46:13 +0800 writes: > I also prefer to keep the old versions. Sometimes, I have > spent time to set up the system with older version and > don't want to update to the latest (e.g. the new RGtk2 > needs updated GTk2 as well) because t