Re: [Rd] Performance monitoring tools

2010-11-17 Thread Brian G. Peterson
On Wed, 17 Nov 2010 17:04:46 -0800, Patrick Leyshock wrote: > Hello, > > Are there any good tools available for monitoring the performance of R? I'm > wanting to capture things such as time elapsed in evaluating an expression, > memory usage over time (or operation), and so on. > > I could build

[Rd] Performance monitoring tools

2010-11-17 Thread Patrick Leyshock
Hello, Are there any good tools available for monitoring the performance of R? I'm wanting to capture things such as time elapsed in evaluating an expression, memory usage over time (or operation), and so on. I could build my own but would like to follow established practice, if there is one. T

Re: [Rd] Bug in agrep computing edit distance?

2010-11-17 Thread Dickison, Daniel
On 11/17/10 6:06 PM, "Joris Meys" wrote: >Indeed, I get it. If the pattern is "xx", it is only matched against 2 >letters at the same time. All the rest doesn't matter. But still that >doesn't explain > >>agrep("ANNTCG", "ANNXXTCG", max = list(ins=3)) >integer(0) >>agrep("ANNTCG", "ANNXTCG", max

Re: [Rd] Bug in agrep computing edit distance?

2010-11-17 Thread Charles C. Berry
On Wed, 17 Nov 2010, Dickison, Daniel wrote: I downloaded and compiled the standalone TRE agrep command line program, and I think I have a slightly better idea of what's going on. Basically R's agrep, like the command line tool, is matching all strings that *contain* the pattern. So, essential

Re: [Rd] Bug in agrep computing edit distance?

2010-11-17 Thread Dickison, Daniel
I downloaded and compiled the standalone TRE agrep command line program, and I think I have a slightly better idea of what's going on. Basically R's agrep, like the command line tool, is matching all strings that *contain* the pattern. So, essentially, insertions before and after the pattern is "

[Rd] WG: Reference classes: opinion on OOP design

2010-11-17 Thread Janko Thyson
Sorry, never sent an attachment before. I think my .R file didn't pass, so I'm attaching a .txt instead. -Ursprüngliche Nachricht- Von: Janko Thyson [mailto:janko.thy...@ku-eichstaett.de] Gesendet: Mittwoch, 17. November 2010 19:56 An: 'r-de...@r-project. org' Betreff: Reference classes:

[Rd] Reference classes: opinion on OOP design

2010-11-17 Thread Janko Thyson
Dear list, I'm aware that this post does not really comply with the posting guide with respect to "providing a minimal reproducible code example". But I do hope it's okay that I spared uninterested readers by putting that into the attachment ;-) The thing is that I'm not really familiar with "tru

Re: [Rd] Compiling R 2.12.0 from source: error (temp dir)

2010-11-17 Thread Prof Brian Ripley
Is this on Windows? (Please do consult the posting guide and tell us the 'at a minimum' information we asked for.) If so, it seems you forget the bit about setting TMPDIR right at the top of the section on 'Building the core files': Set the environment variable @env{TMPDIR} to point to a w

Re: [Rd] R5 reference classes: how to initialize exactly?

2010-11-17 Thread John Chambers
On the subject of clarification, Reference Classes are not really an "addition" to S4. They are a programming interface to allow OOP (i.e., C++ or Java-style) programming in R. They do use some S4 tools but rely more on some valuable existing techniques for dealing with environments, such as

[Rd] Compiling R 2.12.0 from source: error (temp dir)

2010-11-17 Thread Janko Thyson
Dear list, I've just tried to compile R 2.12.0 from source as I think I found an error in a C function that I would like to fix and check before I go ahead with posting the presumed error. I've got the R Toolset 2.12 installed and configured correctly and followed the Admin manual closely (

Re: [Rd] Bug in agrep computing edit distance?

2010-11-17 Thread Joris Meys
It might have to do something with spaces and the interpretation of insertions, as far as I understand the following examples : > agrep("x",c("x","xy","xyz","xyza"),max=list(all=1)) [1] 1 2 3 4 > agrep("x",c("x","xy ","xyz ","xyza"),max=list(all=1)) [1] 1 > agrep("xx",c("xx","xyx","xyzx",

[Rd] Bug in agrep computing edit distance?

2010-11-17 Thread Dickison, Daniel
I posted this yesterday to r-help and Ben Bolker suggested reposting it here... Dickison, Daniel carnegielearning.com> writes: > > The documentation for agrep says it uses the Levenshtein edit distance, > but it seems to get this wrong in certain cases when there is a > combination of deletions

Re: [Rd] Reference classes: accessor functions via 'getRefClass(...)$accessors(...)'

2010-11-17 Thread Janko Thyson
Thanks a lot for the comments! I'll give the serveral alternatives a try to see if it gets me what I want. Cheers, Janko > -Ursprüngliche Nachricht- > Von: Vitalie S. [mailto:spinuvit.l...@gmail.com] > Gesendet: Mittwoch, 17. November 2010 13:51 > An: Janko Thyson > Cc: 'r-de...@r-projec

Re: [Rd] [R] DBLEPR?

2010-11-17 Thread Prof. John C Nash
Thanks for comments from several folk, fix from Doug Bates and start to finding new email for ucminf maintainer. Summary of responses: DBLEPR and its relations are briefly mentioned but with no or minimal examples in Writing R Extensions as well as Venables and Ripley book. I should have emphas

Re: [Rd] Reference classes: accessor functions via 'getRefClass(...)$accessors(...)'

2010-11-17 Thread Vitalie S.
"Janko Thyson" writes: > Hi there, > > I'd like to choose between an "static" and "dynamic" access of a reference > class field, say 'a'. > > myObj <- getRefClass("Blabla")$new() > > Static: myObj$a > > Dynamic: myObj$a.get() where the function retrieves the data > f

[Rd] Subclasses of class "call" not possible in R.

2010-11-17 Thread Vitalie S.
Hello Everyone! I am trying to extend the class "call", but keep getting errors whatever I do: setClass("mycall", contains = "call") #[1] "mycall" new("mycall") #Error in function (object) : # error in evaluating the argument 'object' in selecting a method for function #'show' new("mycall",

Re: [Rd] Reference classes: accessor functions via 'getRefClass(...)$accessors(...)'

2010-11-17 Thread Romain Francois
Le 17/11/10 13:07, Janko Thyson a écrit : Hi there, I'd like to choose between an "static" and "dynamic" access of a reference class field, say 'a'. myObj<- getRefClass("Blabla")$new() Static: myObj$a Dynamic: myObj$a.get() where the function retrieves the

[Rd] Reference classes: accessor functions via 'getRefClass(...)$accessors(...)'

2010-11-17 Thread Janko Thyson
Hi there, I'd like to choose between an "static" and "dynamic" access of a reference class field, say 'a'. myObj <- getRefClass("Blabla")$new() Static: myObj$a Dynamic: myObj$a.get() where the function retrieves the data from a database (or some other loca

Re: [Rd] R5 reference classes: how to initialize exactly?

2010-11-17 Thread Romain Francois
Le 17/11/10 11:39, Janko Thyson a écrit : -Ursprüngliche Nachricht- Von: Simon Urbanek [mailto:simon.urba...@r-project.org] Gesendet: Mittwoch, 17. November 2010 11:35 An: Janko Thyson Cc: 'r-de...@r-project. org' Betreff: Re: [Rd] R5 reference classes: how to initialize exactly? Just

Re: [Rd] R5 reference classes: how to initialize exactly?

2010-11-17 Thread Janko Thyson
> -Ursprüngliche Nachricht- > Von: Simon Urbanek [mailto:simon.urba...@r-project.org] > Gesendet: Mittwoch, 17. November 2010 11:35 > An: Janko Thyson > Cc: 'r-de...@r-project. org' > Betreff: Re: [Rd] R5 reference classes: how to initialize exactly? > > Just a clarification for posterity

Re: [Rd] R5 reference classes: how to initialize exactly?

2010-11-17 Thread Simon Urbanek
Just a clarification for posterity - R5 has nothing to do with the new reference classes. It's not even an official name, but informally it's a collection of ideas for an entirely new object system that can replace both S3 and S4 (not that it will but it should be seen as having the capability t

Re: [Rd] Vignette Questions

2010-11-17 Thread friedrich . leisch
> Dear List, > > I recently stumbled over the possibility and need to specifiy > % \VignetteDepends{} > in my vignettes. I did not know about this, and I notice that it is not > mentioned in the R-extensions manual section "Writing package vignettes". > [...] Very strange, both Kurt Hornik and mys