http://tolstoy.newcastle.edu.au/R/e2/devel/06/10/0565.html
[2] http://wiki.r-project.org/rwiki/doku.php?id=developers:r_connections_api
--
Romain Francois
Independent R Consultant
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
__
R-devel@r-projec
, Belgium
( ( ( ( (
......
Romain Francois wrote:
strapply in package gsubfn brings elegance here:
Don't! If you write functions to be used in a package to be included
somehow in the base or recommended packages, then, your package should
only depends on... base (preferably), or recomm
lippe Grosjean
) ) ) ) )
( ( ( ( (Numerical Ecology of Aquatic Systems
) ) ) ) ) Mons-Hainaut University, Belgium
( ( ( ( (
......
Romain Francois wrote:
Jonathan Baron wrote:
After reading all this, I favor doing one of two things:
1. Put all the search st
x27;bar', 1000 )
> rx <- "<(.*?)>(.*?)"
> system.time( out <- strapply( txt, rx, c , perl = T ) )
user system elapsed
2.923 0.005 3.063
> system.time( out2 <- sapply( paste('\\', 1:3, sep=''), function(x){
+ gsub(rx, x, txt, perl=T
inning (separate package) on the theory that it would be
easier for me to make changes than if it were part of utils, but I
don't know how this works.
So, if someone can make a decision about how to proceed, I'll do what
I can, as soon as I can.
Jon
--
Romain Francois
Independen
n't want to do it. I guess it would
search gmane. MarkMail is also pretty good, as is
http://tolstoy.newcastle.edu.au/R/ All these are much better than
Namazu for searching the R-help list.
Sorry I didn't make it clear: I meant something like the gmaneSearcg()
that Roma
ge, together with any attachme...{{dropped:12}}
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
--
Romain Francois
Independent R Consultant
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
begin{Schunk}
\begin{Soutput}
\bibliography{/usr/local/lib/R/library/emulator/doc/bayesian.bib}
\end{Soutput}
\end{Schunk}
So, my question is: why does TeX parse the middle line? why isn't this
line interpreted as regular Soutput?
best wishes and thanks again
Robin
Romain Francois wrot
ave a bundle comprising three packages.
Each package has a vignette. Currently each
vignette has a separate .bib file.
How do I arrange the bundle so that each
vignette accesses a single, common, .bib file?
thanks
Robin
--
Romain Francois
Independent R Consult
t <- old.as.matrix.dist( d ) )
user system elapsed
17.471 2.964 21.304
Romain
Romain Francois wrote:
Hello,
I am trying to patch as.matrix.dist to achieve some speedup.
> m <- expand.grid( x = 1:20, y = 1:20, z = 1:20 )
> d <- dist( m )
> system.time( out <- stats
eugster/soc09/#p5)
On the same note, what about having a function for the prompt, so that
(for example) we could show the current working directory, the memory
usage, ...
Romain
--
Romain Francois
Independent R Consultant
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
Index: src/librar
eval(call,env);
UNPROTECT(1);
break;
}
so that LANGSXP are printed using the PrintLanguage function and CLOSXP
are printed using the R function print.function which in turns calls the
PrintClosure function (unless it is masked in R)
Romain
Romain Francois wrote:
Yesterday's patch
Yesterday's patch did not print the attributes. This one seems fine:
> f <- function(){}
> attr( f, "yada" ) <- function( ) "lobster bisk"
> f
function(){}
attr(,"yada")
function( ) "lobster bisk"
Romain
Romain Francois wrote:
Du
Duncan Murdoch wrote:
On 18/04/2009 10:12 AM, Romain Francois wrote:
Hello,
Could the code that auto prints a function/closure be extracted from
print.c so that there would be a print.closure function.
I would like to be able to mask a print.closure function so that I
have a custom auto
Duncan Murdoch wrote:
On 18/04/2009 10:12 AM, Romain Francois wrote:
Hello,
Could the code that auto prints a function/closure be extracted from
print.c so that there would be a print.closure function.
I would like to be able to mask a print.closure function so that I
have a custom auto
the R console.
Romain
--
Romain Francois
Independent R Consultant
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Hello,
I am trying to patch as.matrix.dist to achieve some speedup.
> m <- expand.grid( x = 1:20, y = 1:20, z = 1:20 )
> d <- dist( m )
> system.time( out <- stats:::as.matrix.dist( d ) )
user system elapsed
15.355 3.110 19.123
> system.time( out <- as.matrix.dist( d ) )
user system ela
then, accepted by the R
core team before going any further.
All the best,
Philippe Grosjean
--
Romain Francois
Independent R Consultant
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
r, in most browser,
with tag , the formula in the tag works well.
such as in wikipedia. please check the same formula:
http://en.wikipedia.org/wiki/Johansen_test
--
with best regards
Jack (Zhan, Hua Ping)
+1-514-8800518
--
Romain Francois
Independent R Consultant
+33(0) 6 28 91
env, NULL,
TRUE))
expr
}
but it does not work, probably because the handler stack is reset
somewhere.
Would it work if I poke into the RTopLevel.handlerstack instead of the
R_HandlerStack as .addCondHands is doing ?
R_Toplevel.handlerstack = R_HandlerStack;
R_Toplevel.restartstac
ed in that case ), which at the moment is not possible
because the parser only locates entire expression (semantic groupings)
and not tokens.
> f <- function( x = 2) {
+ y + 2
+ }
> checkUsage( f )
: no visible binding for global variable ‘y’
Hadley
--
Romain Francois
Independent R C
tion yylex() scans the input, breaking it into
 * tokens which are then passed to the parser. The lexical
 * analyser maintains a symbol table (in a very messy fashion).
so my question is could we use this symbol table to keep track of, say, COMMENT
tokens.
Why would I even care about that
Wacek Kusnierczyk wrote:
redirected to r-devel, because there are implementational details of
[.data.frame discussed here. spoiler: at the bottom there is a fairly
interesting performance result.
Romain Francois wrote:
Hi,
This is a bug I think. [.data.frame treats its arguments
(all examples are for named arguments)
- echo a warning if trying to pass named arguments to a .Primitive
- allow for named arguments as you suggest
I'm not sure the last two would be possible without some cost in
efficiency.
Many thanks,
baptiste
On 26 Mar 2009, at 07:46
Duncan Murdoch wrote:
On 22/03/2009 4:50 PM, Romain Francois wrote:
Romain Francois wrote:
Peter Dalgaard wrote:
Duncan Murdoch wrote:
On 3/20/2009 2:56 PM, romain.franc...@dbmail.com wrote:
It happens in the token function in gram.c:
   c = SkipSpace();
   if (c == '
Romain Francois wrote:
Peter Dalgaard wrote:
Duncan Murdoch wrote:
On 3/20/2009 2:56 PM, romain.franc...@dbmail.com wrote:
It happens in the token function in gram.c:
   c = SkipSpace();
   if (c == '#') c = SkipComment();
and then SkipComment goes like that:
static int S
r events, or is this abusing the concept of conditions and
something else should be used ? hooks ?
Also, is there a way to "register" a calling handler so that it listens
to every top-level command. Something like options( "error") but for
handling other kinds of condition
ze.)
The Rd parser is different, because in an Rd file, whitespace is
significant, so it gets kept.
Duncan Murdoch
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
--
Romain Francois
Independent
and it seems a waste to drop the comments.
An also, when you print a function to the R console, you don't get the
comments, and some of them might be useful to the user.
Am I mad if I contemplate looking into this ?
Romain
--
Romain Francois
Independent R Consultant
+33(0) 6 28 91 30
modified to support
alternative front-ends. If you come from a front-end standpoint,
make a few suggestions on how you would present the information.
--
Romain Francois
Independent R Consultant
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
__
R
ux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status Under development (unstable)
major 2
minor 9.0
year 2009
month 03
day03
svn rev48044
language R
version.string R version 2.9.0 Under development (unstable) (2009-03-03
r48044)
--
Romain Francois
Independent R Consultant
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
g if I am missing an "official" way to do this,
similar to system.file does for installed packages. I am aware of the
inst directory but this does not solve the problem in cases where the
library is read only.
Romain
--
Romain Francois
Independent R Consultant
+33(0) 6 28 91
Please ignore the previous patch which did not take into account the
conditional compilation of doprof on windows. This one does, but was not
tested on windows.
Romain
Romain Francois wrote:
Hello,
Please find attached a patch against svn implementing this proposal.
The part I don't
100.0
"rnorm" 0.06 1.1 0.06 1.1
$by.total
total.time total.pct self.time self.pct
"[for]" 5.38 100.0 5.32 98.9
"rnorm" 0.06 1.1 0.06 1.1
$sampling.time
[1] 5.38
Romain
Romain Francois wrote:
at installation in any recent version of R. Just check their
existence.
On Tue, 3 Mar 2009, Romain Francois wrote:
Prof Brian Ripley wrote:
On Tue, 3 Mar 2009, Romain Francois wrote:
Prof Brian Ripley wrote:
The caching is in the disc system: you need to find and read the
package metadata
the list of "functions" that appear in the
profiler file.
Obviously I am taking some shortcuts here, because of the other loops,
but I would like to make a formal patch with this. Before I do that, I'd
like to know :
- is this has a chance of breaking something else (does the
Prof Brian Ripley wrote:
On Tue, 3 Mar 2009, Romain Francois wrote:
Prof Brian Ripley wrote:
The caching is in the disc system: you need to find and read the
package metadata for every package. AFAIK it is not easy to flush
the disc cache, but quite easy to overwrite it with later reads
ckages: the Perl code reads
the indices from every visible package to resolve links, and that can
be slow the first time.
On Tue, 3 Mar 2009, Romain Francois wrote:
Hello,
The first time in a session I call .packages( all.available = T ), it
takes a long time (I have many packages ins
velopment (unstable)
major 2
minor 9.0
year 2009
month 02
day08
svn rev 47879
language R
version.string R version 2.9.0 Under development (unstable) (2009-02-08
r47879)
--
Romain Francois
Independent R Consultant
+33(0) 6 28 91 30 30
linux-gnu
system i686, linux-gnu
status Under development (unstable)
major 2
minor 9.0
year 2009
month 02
day08
svn rev47879
language R
version.string R version 2.9.0 Under development (unstable) (2009-02-08 r47879)
R
es of code is your answer. Probably also worth
looking in the modules/X11/ and unix directories
Romain
--
Romain Francois
Independent R Consultant
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
David M Smith wrote:
Oftentimes, I see graphs on the web that *look* like they've been
pro
Duncan Murdoch wrote:
On 12/02/2009 7:01 AM, Romain Francois wrote:
Hello,
Consider this file (/tmp/test.R) :
f <- function( x, y = 2 ){
z <- x + y
print( z )
}
I get this in R 2.7.2 :
> p <- parse( "/tmp/test.R" )
> str( attr( p, "srcref" ) )
quot;srcfile")=Class 'srcfile' length 4
and this in R-devel :
> p <- parse( "/tmp/test.R" )
> str( attr(p, "srcref") )
List of 1
$ :Class 'srcref' atomic [1:6] 1 1 4 1 1 1
.. ..- attr(*, "srcfile")=Class 'sr
Hello Mike,
You might want to give "mencoder" a try. It usually comes with mplayer.
I did play with it a while ago and was fairly happy with the results.
Basically, the idea was to create many jpg files somewhere, which is not
too hard using the %03d substitution described in ?jpeg.
The rest is
((resent without the generated links, thanks Dirk))
Hello all,
I just wanted to share a small perl script that generates a dot file
from the result of the R profiler. The dot file can than be used to
create a graphical display of the profiling. You can save this file in
the bin directory of your
Hello all,
I just wanted to share a small perl script that generates a dot file
from the result of the R profiler. The dot file can than be used to
create a graphical display of the profiling. You can save this file in
the bin directory of your R installation and then create a graph, for
exam
Hello,
I am often asked how to filter lines from a data frame, like for example
get all the Mazda cars from mtcars, so that usually does the trick:
R> mtcars[ grep("Mazda", rownames(mtcars)) , ]
but, what about using a formula in `[.data.frame` to make that sort of
code meaningful:
# rownames
And now I realize I gave the patches in the wrong order, let me try
again
Cheers,
Romain
Romain Francois wrote:
> [forgot to attach the second patch in the first mail, sorry.]
>
> Hello,
>
> Appending information to the profiler's output seems to generate
> pr
[forgot to attach the second patch in the first mail, sorry.]
Hello,
Appending information to the profiler's output seems to generate
problems. Here is a small example of code :
require(boot)
Rprof( memory.profiling = TRUE)
Rprof(NULL)
for(i in 1:2){
Rprof( memory.profiling = TRUE, append = T
Hello,
Appending information to the profiler's output seems to generate
problems. Here is a small example of code :
require(boot)
Rprof( memory.profiling = TRUE)
Rprof(NULL)
for(i in 1:2){
Rprof( memory.profiling = TRUE, append = TRUE)
example(boot)
Rprof(NULL)
}
The problem is that the
Wolfgang Huber wrote:
> Dear all,
>
> is there a good way to create SVG plots with R whose elements have
> titles (tooltips) or act as hyperlinks?
>
> I am using the RSvgDevice package, which works great - but it doesn't
> seem to support the notion that plot objects have titles or are act as
>
Duncan Murdoch wrote:
> On 11/10/2006 12:52 PM, Romain Francois wrote:
>> Duncan Murdoch wrote:
>>> On 11/9/2006 5:14 AM, Romain Francois wrote:
>>>> Hello,
>>>>
>>>> What about an `invert` argument in grep, to return elements that
>>&g
Duncan Murdoch wrote:
> On 11/9/2006 5:14 AM, Romain Francois wrote:
>> Hello,
>>
>> What about an `invert` argument in grep, to return elements that are
>> *not* matching a regular expression :
>>
>> R> grep("pink", colors(), invert = TRUE, v
Hello,
What about an `invert` argument in grep, to return elements that are
*not* matching a regular expression :
R> grep("pink", colors(), invert = TRUE, value = TRUE)
would essentially return the same as :
R> colors() [ - grep("pink", colors()) ]
I'm attaching the files that I modified (
Hi,
When x is a data frame, sample(x) is not really sensible :
R> sample(iris) # sends back all the iris data set.
What about a generic sample function (from R-devel/src/library/base/R)
with a method for class `data.frame` that would sample the row indexes
and then do the subset. See the code
Gabor Grothendieck wrote:
> It occurred to me that we could have an optional file called TESTIMONIALS
> that comes with each package which could be a list of short testimonials from
> users indicating success with that package and possibly a few details of
> the successful application, e.g. it was
Hi all,
It would be great to be able to use a syntax like :
R> ls("grid:::grid\.")
instead of :
R> ls("package:grid", pattern = "^grid\.")
Here is a modified version of `ls` that does the job. [ The only modifs
are just after the if(!missing(name)) ]
Does that make sense ?
Cheers,
Romain
e an obstacle for
>>Gregor> exact understanding of the documentation, specially
>>Gregor> for non-english users.
>>
>> I knew what 'iff' means many years before I kn
.7 is released : http://www-math.univ-fcomte.fr/mixmod/index.php
+---+
| Romain FRANCOIS - http://francoisromain.free.fr |
| Doctorant INRIA Futurs
hiques
mixmod 1.7 is released : http://www-math.univ-fcomte.fr/mixmod/index.php
+-------+
| Romain FRANCOIS - http://francoisromain.free.fr |
| Doctoran
/ Emacs. For that,
>>> I use Stangle (as Sundar Dorai-Raj taught me).
>>>
>>> Thanks,
>>> Spencer Graves
>>>
>>> _
e.fr/mixmod/index.php
+-------+
| Romain FRANCOIS - http://francoisromain.free.fr |
| Doctorant INRIA Futurs / EDF |
+---+
___
Le 11.04.2006 10:01, Romain Francois a écrit :
> Hi,
>
> Is there a way to use kcachegrind on R code ?
> I mean the R function written in R (not the C, etc ... functions). Has
> someone tried to generate "Callgrind profile format" from ouputs of Rprof ?
>
> Romain
pfile("hist")
write(rawhist[inds], file2)
file.show(file2, title = "R History", delete.file = TRUE)
}
--
visit the R Graph Gallery : http://addictedtor.free.fr/graphiques
mixmod 1.7 is released : http://www-math.univ-fc
ete.file = TRUE)
}
--
visit the R Graph Gallery : http://addictedtor.free.fr/graphiques
mixmod 1.7 is released : http://www-math.univ-fcomte.fr/mixmod/index.php
+---+
mod 1.7 is released : http://www-math.univ-fcomte.fr/mixmod/index.php
+---+
| Romain FRANCOIS - http://francoisromain.free.fr |
| Doctorant INRIA Fu
you know it is open source.
Romain
--
visit the R Graph Gallery : http://addictedtor.free.fr/graphiques
Discover the R Movies Gallery : http://addictedtor.free.fr/movies
+-------+
| Romain FRANCOIS - http://francoisromain.free.fr
s[a4paper]{article}
%\VignetteIndexEntry{Interface '96 paper by Marron et al. (1997)}
%\VignettePackage{clps}
\usepackage{hyperref}
\usepackage{natbib}
\usepackage{pdfpages}
\title{Interface '96 paper by \cit
ng the lines of what I was thinking.
>
>An unpleasant work around would be to create a translation package
>that does something along the lines of Duncan M.'s suggestion,
>importing, renaming, exporting.
>
>
What about :
bar <- pack::foo
x.php
+---+
| Romain FRANCOIS - http://francoisromain.free.fr |
| Doctorant INRIA Futurs / EDF |
+---+
__
R-devel@r-project.org mailing list
you think ?
Romain
--
visit the R Graph Gallery : http://addictedtor.free.fr/graphiques
mixmod 1.7 is released : http://www-math.univ-fcomte.fr/mixmod/index.php
+---+
| Romain FRANCOIS - http://francoisromain.free.fr |
|
d Rd
Romain
--
visit the R Graph Gallery : http://addictedtor.free.fr/graphiques
mixmod 1.7 is released : http://www-math.univ-fcomte.fr/mixmod/index.php
+-------+
| Romain FRANCOIS - http://francoisromain.free.fr |
| Doctorant
od 1.7 is released : http://www-math.univ-fcomte.fr/mixmod/index.php
+---+
| Romain FRANCOIS - http://f
201 - 273 of 273 matches
Mail list logo