Re: [Rd] R-devel Digest, Vol 83, Issue 2

2010-01-02 Thread Romain Francois
vacated space. Really the only reliable way to answer efficiency questions like this is to try both ways and see which works better in your application. Another possibility is to maintain your own list or environment of objects, and just protect/preserve the list as a whole. Duncan Murdoch -- Romain

Re: [Rd] R_PreserveObject, R_ReleaseObject : reference counting needed ?

2010-01-02 Thread Romain Francois
) and the template XPTr for external pointers. The rest (vectors, functions, ...) will follow. I'd suggest using the Rcpp mailing list for a follow up. https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel -Whit On Sat, Jan 2, 2010 at 12:24 PM, Romain Francois romain.franc...@dbmail.com

Re: [Rd] R-devel Digest, Vol 83, Issue 2

2010-01-02 Thread Romain Francois
On 01/02/2010 11:41 PM, Romain Francois wrote: On 01/02/2010 11:12 PM, Duncan Murdoch wrote: On 02/01/2010 3:16 PM, Laurent Gautier wrote: On 1/2/10 8:53 PM, Duncan Murdoch wrote: Simon Urbanek wrote: On Jan 2, 2010, at 12:17 PM, Laurent Gautier wrote: On 1/2/10 5:56 PM, Duncan Murdoch

Re: [Rd] iterative list rm [Was: R-devel Digest, Vol 83, Issue 2]

2010-01-02 Thread Romain Francois
On 01/03/2010 02:04 AM, Simon Urbanek wrote: On Jan 2, 2010, at 5:41 PM, Romain Francois wrote: On 01/02/2010 11:12 PM, Duncan Murdoch wrote: On 02/01/2010 3:16 PM, Laurent Gautier wrote: On 1/2/10 8:53 PM, Duncan Murdoch wrote: Simon Urbanek wrote: On Jan 2, 2010, at 12:17 PM, Laurent

Re: [Rd] Redirect standard output (PR#14148)

2009-12-16 Thread Romain Francois
on Windows XP, but appeared on Windows 7 when the same program is run. Then send this to microsoft. -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/HlX9 : new package : bibtex |- http://tr.im/Gq7i : ohloh `- http://tr.im/FtUu : new

[Rd] split.data.frame

2009-12-15 Thread Romain Francois
9 2 10 10 2 split( df, x 3 ) $`FALSE` x y 1 1 1 2 2 1 3 3 1 $`TRUE` x y 4 4 1 5 5 1 6 6 2 7 7 2 8 8 2 9 9 2 10 10 2 Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/HlX9 : new package : bibtex

Re: [Rd] silly SVN question

2009-12-15 Thread Romain Francois
to track the development branch of the recommended packages. (I'm assuming they actually live somewhere on the same SVN server, which might not be true ...) Any ideas (including pointing out the obvious, or the obvious-in-hindsight)? thanks Ben Bolker -- Romain Francois Professional R Enthusiast

Re: [Rd] split.data.frame

2009-12-15 Thread Romain Francois
On 12/16/2009 12:14 AM, Peter Dalgaard wrote: Romain Francois wrote: Hello, I very much enjoy with and subset semantics for data frames and was wondering if we could have something similar with split, basically by evaluating the second argument with the data frame : I seem to recall

Re: [Rd] S4 dispatch and S3 connection objects

2009-12-15 Thread Romain Francois
wrote: On Mon, Dec 14, 2009 at 11:36 PM, Romain Francois romain.franc...@dbmail.com wrote: Hello, I'm trying to get S4 dispatch on S3 connection objects. So I do : setOldClass( connection ) and then : setGeneric( bling, function(object) standardGeneric( bling ) ) setMethod( bling

[Rd] S4 dispatch and S3 connection objects

2009-12-14 Thread Romain Francois
on for each potential S3 class, or is there another way. Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/HlX9 : new package : bibtex |- http://tr.im/Gq7i : ohloh `- http://tr.im/FtUu : new package : highlight

Re: [Rd] raster support in graphics devices

2009-12-06 Thread Romain Francois
On 12/06/2009 01:20 AM, Simon Urbanek wrote: On Dec 5, 2009, at 4:11 PM, Romain Francois wrote: I agree too, I was just trying to put on the balance the amount of work that would require graphics supporting connections. Who's willing to do it ? The issue is not the will nor complexity

Re: [Rd] raster support in graphics devices

2009-12-06 Thread Romain Francois
On 12/06/2009 02:24 PM, Romain Francois wrote: On 12/06/2009 01:20 AM, Simon Urbanek wrote: On Dec 5, 2009, at 4:11 PM, Romain Francois wrote: I agree too, I was just trying to put on the balance the amount of work that would require graphics supporting connections. Who's willing to do

Re: [Rd] raster support in graphics devices

2009-12-06 Thread Romain Francois
On 12/06/2009 02:49 PM, Simon Urbanek wrote: On Dec 6, 2009, at 8:24 AM, Romain Francois wrote: On 12/06/2009 01:20 AM, Simon Urbanek wrote: On Dec 5, 2009, at 4:11 PM, Romain Francois wrote: I agree too, I was just trying to put on the balance the amount of work that would require

Re: [Rd] raster support in graphics devices

2009-12-05 Thread Romain Francois
on the topic can be found here: http://tolstoy.newcastle.edu.au/R/e8/help/09/11/5902.html Best, Tobias On Fri, Dec 4, 2009 at 11:01 AM, Romain Francois romain.franc...@dbmail.com wrote: On 12/04/2009 03:19 PM, Gabor Grothendieck wrote: Thanks. I am looking for the data to be just as if I had

Re: [Rd] raster support in graphics devices

2009-12-04 Thread Romain Francois
://www.stat.auckland.ac.nz/~paul/http://www.stat.auckland.ac.nz/%7Epaul/ http://www.stat.auckland.ac.nz/%7Epaul/ -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/Gq7i : ohloh |- http://tr.im/FtUu : new package : highlight `- http://tr.im/EAD5

Re: [Rd] Bug in R evaluating a huge instruction (PR#14096)

2009-12-03 Thread Romain Francois
it's not readable. Could you put the code online somewhere where we could download it in its original form? I doubt if this is an R bug, but I can't point out the problem in your code (or confirm that it really is an R bug) without an undamaged copy of the code. Duncan Murdoch -- Romain Francois

Re: [Rd] combine UserDefinedDatabase and regular environments

2009-12-02 Thread Romain Francois
On 12/03/2009 12:17 AM, Michael Lawrence wrote: On Thu, Nov 19, 2009 at 10:54 AM, Romain Francois romain.franc...@dbmail.com mailto:romain.franc...@dbmail.com wrote: On 11/19/2009 06:14 PM, Michael Lawrence wrote: On Thu, Nov 5, 2009 at 9:58 AM, Romain Francois

[Rd] include body in the call to httpd

2009-11-30 Thread Romain Francois
). I'm attaching a small patch that adds a body argument to httpd and sets it to either NULL when there is no body or the body, as a raw vector. Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/FtUu : new package

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

2009-11-20 Thread Romain Francois
original low-level interpretation. str is another example -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/EAD5 : LondonR slides |- http://tr.im/BcPw : celebrating R commit #5 `- http://tr.im/ztCu : RGG #158:161: examples

Re: [Rd] Including local dynamic libraries

2009-11-20 Thread Romain Francois
not able to make this addition. How can I have R recognize c++ libraries from my local path? Thanks so much in advance for your help. -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/EAD5 : LondonR slides |- http://tr.im/BcPw

Re: [Rd] combine UserDefinedDatabase and regular environments

2009-11-19 Thread Romain Francois
On 11/19/2009 06:14 PM, Michael Lawrence wrote: On Thu, Nov 5, 2009 at 9:58 AM, Romain Francois romain.franc...@dbmail.com mailto:romain.franc...@dbmail.com wrote: Hello, Is it possible to have the effect of UserDefinedDatabase outside of attached environments ? Can I disguise

Re: [Rd] R_tryEval for OCaml-R.

2009-11-14 Thread Romain Francois
/tryEval.c e...@ron:~$ you can always try Google Code Search as in http://www.google.com/codesearch?q=R_tryEvalhl=enbtnG=Search+Code Hth, Dirk -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/EAD5 : LondonR slides |- http

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

2009-11-13 Thread Romain Francois
to library(help=MASS) Or have I overlooked something, and a function for this already exists? ?news -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/EAD5 : LondonR slides |- http://tr.im/BcPw : celebrating R commit #5

[Rd] \\signature macro generated by promptMethods

2009-11-09 Thread Romain Francois
for function \code{foo} ~~ } \section{Methods}{ \describe{ \item{\code{\signature(x = track)}}{ ~~describe this method here } }} \keyword{methods} \keyword{ ~~ other possible keyword(s)} Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http

Re: [Rd] getConnection, R_outpstream_st

2009-11-08 Thread Romain Francois
On 11/07/2009 11:24 AM, Romain Francois wrote: Hello, I'm trying to use the limited connections api defined in Rinternals.h. I have code that looks like this (inspired from do_serializeToConn) : SEXP serialize_to_connection( SEXP xp, SEXP connection ){ Rconnection con ; struct R_outpstream_st out

[Rd] getConnection, R_outpstream_st

2009-11-07 Thread Romain Francois
to get the Rconnection that is associated with a number. Many thanks. Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/BcPw : celebrating R commit #5 |- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc

[Rd] recover and called from information

2009-10-27 Thread Romain Francois
) == integer length(w) == 1L ){ return( calls[[w]] ) } } calls[[nc]] } I'd be happy to work on an internal version instead of this one in R. Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30

Re: [Rd] to connect R from ejb

2009-10-20 Thread Romain Francois
, what did not work, and so on. On 10/20/2009 05:22 AM, pragathichi wrote: how to add Reengine and Rserveengine jar files in ejb? I am using eclipse, plz suggest. Romain Francois-2 wrote: On 10/19/2009 10:57 AM, pragathichi wrote: How to call R from ejb, can i use Rserve? yes -- Romain

Re: [Rd] to connect R from ejb

2009-10-19 Thread Romain Francois
On 10/19/2009 10:57 AM, pragathichi wrote: How to call R from ejb, can i use Rserve? yes -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/BcPw : celebrating R commit #5 |- http://tr.im/ztCu : RGG #158:161: examples

[Rd] for loop over S4

2009-10-13 Thread Romain Francois
a list that is filled by iterating over the object if it implements the Iterable interface. The drawback here is that one has to first fully retrieve the list, by iterating in java, and then process it in R, by iterating again in R. Romain -- Romain Francois Professional R Enthusiast +33(0) 6

Re: [Rd] for loop over S4

2009-10-13 Thread Romain Francois
time ? (I probably miss something here) Romain On 10/13/2009 11:09 AM, Romain Francois wrote: Hello, Consider this : setClass(track, representation(x=numeric, y=numeric)) [1] track o - new( track, x = 1, y = 2 ) for( i in o ){ + cat( hello\n) + } Error: invalid type/length (S4/1) in vector

Re: [Rd] for loop over S4

2009-10-13 Thread Romain Francois
Oops, forgot to add the R code. On 10/13/2009 03:42 PM, Romain Francois wrote: Hello, Here is a more complete patch implementing an iterating scheme inspired from the java Iterable/Iterator design. Nothing is changed for non S4 objects. The patch contains 4 generic functions : is.iterable

Re: [Rd] unexpected behaviour of isSymmetric() (PR#14000)

2009-10-12 Thread Romain Francois
# pass the ... along this path : isSymmetric all.equal all.equal.numeric isSymmetric( y, check.attributes = F ) [1] TRUE # set the dimnames equal dimnames( y ) - rep( list( names(x) ), 2 ) isSymmetric( y ) [1] TRUE Not sure this is expected behaviour Romain -- Romain Francois Professional

[Rd] help( ., package = variable ) - error

2009-10-11 Thread Romain Francois
= utils ) help( write.table, package = utils ) help( write.table, package = pack ) ... unless utils is a variable -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/BcPw : celebrating R commit #5 |- http://tr.im/ztCu : RGG #158

[Rd] as.matrix.data.frame( Date ) - character

2009-10-10 Thread Romain Francois
){ stop( predictors must all be numeric ) } ) does the trick for me. Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/BcPw : celebrating R commit #5 |- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc `- http

[Rd] isFALSE

2009-10-10 Thread Romain Francois
Hello, Just wondering why there is isTRUE and not isFALSE. Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/BcPw : celebrating R commit #5 |- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc `- http

[Rd] environment( seq.int ) is NULL

2009-10-02 Thread Romain Francois
in which things are loaded in the zzz.R of base ... Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc |- http://tr.im/yw8E : New R package : sos `- http://tr.im/y8y0

Re: [Rd] Rd.sty question: LaTeX expert needed

2009-10-01 Thread Romain Francois
macros, but that seems to be an unfortunate limitation. Any help would be appreciated. Duncan Murdoch -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc |- http://tr.im/yw8E : New R

Re: [Rd] How do I access class slots from C?

2009-09-30 Thread Romain Francois
; } exit(0); } -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc |- http://tr.im/yw8E : New R package : sos `- http://tr.im/y8y0 : search the graph gallery from R

Re: [Rd] How do I access class slots from C?

2009-09-30 Thread Romain Francois
, document and test ... but eventually you should do what __you__ find easier/better Romain Regards Abhijit On Wed, Sep 30, 2009 at 12:07 PM, Romain Francois romain.franc...@dbmail.com mailto:romain.franc...@dbmail.com wrote: On 09/30/2009 08:51 AM, Abhijit Bera wrote: Hi

Re: [Rd] How do I access class slots from C?

2009-09-30 Thread Romain Francois
, converting it to a timeseries object then creating a returns object out of it. I plan to embed R into an application, which is why I'm taking this route of using C. Regards Abhijit On Wed, Sep 30, 2009 at 12:07 PM, Romain Francois romain.franc...@dbmail.com

Re: [Rd] build time dependency

2009-09-29 Thread Romain Francois
On 09/29/2009 04:36 AM, Seth Falcon wrote: On Mon, Sep 28, 2009 at 11:25 AM, Romain Francois romain.franc...@dbmail.com wrote: Hi Uwe, I think you are supposed to do this kind of sequence: R CMD roxygen yourRoxygenablePackage R CMD build yourRoxygenablePackage_roxygen ... but I don't like

Re: [Rd] How do I access class slots from C?

2009-09-29 Thread Romain Francois
(install(setWeights),portSpec,portWeights)); PROTECT(portSpec=R_tryEval(e,R_GlobalEnv,NULL)); PROTECT(e=lang2(install(print),portSpec)); R_tryEval(e,R_GlobalEnv,NULL); UNPROTECT(3); Rf_endEmbeddedR(0); return 0; } Regards Abhijit Bera -- Romain Francois Professional

Re: [Rd] build time dependency

2009-09-28 Thread Romain Francois
On 09/27/2009 08:27 PM, Uwe Ligges wrote: Romain Francois wrote: Hello, Is there such thing as a build time dependency between packages : package B needs package A so that it can build, but once built it lives without it. Do you mean at a) R CMD build time or at b) R CMD INSTALL time

Re: [Rd] build time dependency

2009-09-28 Thread Romain Francois
On 09/28/2009 04:39 PM, Uwe Ligges wrote: Romain Francois wrote: On 09/27/2009 08:27 PM, Uwe Ligges wrote: Romain Francois wrote: Hello, Is there such thing as a build time dependency between packages : package B needs package A so that it can build, but once built it lives without

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

2009-09-24 Thread Romain Francois
documentation of c++ code, ... Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc |- http://tr.im/yw8E : New R package : sos `- http://tr.im/y8y0 : search the graph gallery

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

2009-09-24 Thread Romain Francois
as well. I did not see results = documented in ?Rd2HTML, what is allowed ? Is \Sexpr ignored when rendering other formats (tex, ...) ? or is there a way (similar to #ifdef) to only provide some content to some renderers ? Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http

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

2009-09-24 Thread Romain Francois
On 09/24/2009 12:04 PM, Duncan Murdoch wrote: On 24/09/2009 5:42 AM, Romain Francois wrote: On 09/24/2009 11:28 AM, Duncan Murdoch wrote: On 23/09/2009 11:21 PM, Gabor Grothendieck wrote: On Wed, Sep 23, 2009 at 10:54 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: - Ways to link from man

Re: [Rd] cannot build R-devel (= r49747)

2009-09-22 Thread Romain Francois
On 09/22/2009 09:17 AM, Peter Dalgaard wrote: Romain Francois wrote: Hello, I've tried several times yesterday to build R-devel and I consistently get this error when I make : mkdir -p -- ../../../library/base/R make[3]: Leaving directory `/tmp/R-devel/src/library/profile' make[3]: Entering

Re: [Rd] cannot build R-devel (= r49747)

2009-09-22 Thread Romain Francois
On 09/22/2009 11:25 AM, Peter Dalgaard wrote: Romain Francois wrote: However, this might be relevant about my setting, I have the R_KEEP_PKG_SOURCE environment variable set to yes. And if I set it to no it builds correctly. AHA! Yes, that makes sense R_KEEP_PKG_SOURCE=yes make breaks

Re: [Rd] cannot build R-devel (= r49747)

2009-09-22 Thread Romain Francois
On 09/22/2009 11:41 AM, Duncan Murdoch wrote: On 22/09/2009 5:30 AM, Romain Francois wrote: On 09/22/2009 11:25 AM, Peter Dalgaard wrote: Romain Francois wrote: However, this might be relevant about my setting, I have the R_KEEP_PKG_SOURCE environment variable set to yes. And if I set

Re: [Rd] cannot build R-devel (= r49747)

2009-09-22 Thread Romain Francois
the stack pointer -- and in the new code the ParseState.SrcFile ended up getting released more than once. Duncan Murdoch On 9/22/2009 5:50 AM, Romain Francois wrote: On 09/22/2009 11:41 AM, Duncan Murdoch wrote: On 22/09/2009 5:30 AM, Romain Francois wrote: On 09/22/2009 11:25 AM, Peter

Re: [Rd] Display image in tcl/tk information window: path to file ?

2009-09-17 Thread Romain Francois
the image stored in the inst directory. R CMD INSTALL --build moves it to the top directory in the zip file. I have no idea how to tell R (or tcl) where to look for the file. Any help is appreciated! Best regards, Ulrike * Ulrike Groemping BHT Berlin -- Romain Francois Professional R

Re: [Rd] I want to get a reference to this time series object

2009-09-16 Thread Romain Francois
,NULL)); PROTECT(e=lang2(install(print),portData)); R_tryEval(e,R_GlobalEnv,NULL); UNPROTECT(3); Rf_endEmbeddedR(0); return 0; } -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/yw8E : New R package

Re: [Rd] I want to get a reference to this time series object

2009-09-16 Thread Romain Francois
than this ? Is there a better way to do what I'm doing other than parsing? Regards Abhijit On Wed, SSep 16, 2009 at 12:48 PM, Romain Francois romain.franc...@dbmail.com mailto:romain.franc...@dbmail.com wrote: Hi, Luckily, R has its own parser, so you don't have to reimplement

Re: [Rd] Non-GPL packages for R

2009-09-11 Thread Romain Francois
and the | technicalities. | | John Nash Ravi Varadhan -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/y8y0 : search the graph gallery from R |- http://tr.im/y8wY : new R package : ant `- http://tr.im/xMdt : update on the ant package

[Rd] R CMD INSTALL --clean

2009-09-07 Thread Romain Francois
), /table\n ) ooindex[ bottom ] - txt # write back cat( ooindex, file = ooindex.file, sep = \n ) } -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/xMdt : update on the ant package |- http

Re: [Rd] Viewing pdfs from inst/doc

2009-09-05 Thread Romain Francois
= vignette ){ structure( pdf = file, topic = topic, class = vignette ) } Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/xMdt : update on the ant package |- http://tr.im/xHLs : R capable version of ant `- http

[Rd] returned value of R_tryEval

2009-09-05 Thread Romain Francois
and not look at the returned value. Could this be expanded so that, when an error occurs, something more useful than NULL is returned, such as the call stack for example. Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im

Re: [Rd] Load a package without installing it

2009-09-04 Thread Romain Francois
of an S4 class and continue to manage objects created before the resourcing Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/xMdt : update on the ant package |- http://tr.im/xHLs : R capable version of ant `- http://tr.im

Re: [Rd] Rscript and default packages

2009-09-04 Thread Romain Francois
On 09/04/2009 04:20 PM, Simon Urbanek wrote: On Sep 3, 2009, at 13:52 , Romain Francois wrote: On 09/03/2009 05:23 PM, Duncan Murdoch wrote: On 03/09/2009 9:53 AM, Romain Francois wrote: Hi, Is is possible to embed inside an R script, the name of the default packages to be loaded when

Re: [Rd] How to ship R scripts with R packages ?

2009-09-03 Thread Romain Francois
On 09/02/2009 01:13 PM, Duncan Murdoch wrote: Romain Francois wrote: Hello, (This is a remix of this previous thread: https://stat.ethz.ch/pipermail/r-devel/2009-August/054264.html , but with a concrete example) I am developing some packages that contain scripts (for Rscript) and would like

Re: [Rd] How to ship R scripts with R packages ?

2009-09-03 Thread Romain Francois
On 09/03/2009 02:46 PM, Duncan Murdoch wrote: On 03/09/2009 7:47 AM, Romain Francois wrote: On 09/02/2009 01:13 PM, Duncan Murdoch wrote: Romain Francois wrote: Hello, (This is a remix of this previous thread: https://stat.ethz.ch/pipermail/r-devel/2009-August/054264.html

[Rd] Rscript and default packages

2009-09-03 Thread Romain Francois
-- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/xMdt : update on the ant package |- http://tr.im/xHLs : R capable version of ant `- http://tr.im/xHiZ : Tip: get java home from R with rJava

[Rd] How to ship R scripts with R packages ?

2009-09-02 Thread Romain Francois
about the exec directory, but it is not clear if I can use it this way or how. Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/xHLs : R capable version of ant |- http://tr.im/xHiZ : Tip: get java home from R with rJava

Re: [Rd] How to ship R scripts with R packages ?

2009-09-02 Thread Romain Francois
On 09/02/2009 01:13 PM, Duncan Murdoch wrote: Romain Francois wrote: Hello, (This is a remix of this previous thread: https://stat.ethz.ch/pipermail/r-devel/2009-August/054264.html , but with a concrete example) I am developing some packages that contain scripts (for Rscript) and would like

[Rd] more special completions

2009-08-21 Thread Romain Francois
be the .jnew function from rJava, where the first argument is a java class, associated with something that can complete java class names. Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/w33B : Completion for java

Re: [Rd] more special completions

2009-08-21 Thread Romain Francois
be of help when you tackle this. Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/w33B : Completion for java objects |- http://tr.im/vzip : Code Snippet : List of CRAN packages `- http://tr.im/vsK1 : R parser package on CRAN

Re: [Rd] exec subdirectory of a package

2009-08-07 Thread Romain Francois
Anyone ? I guess I'll have to make a package that ships the execute script Romain On 08/05/2009 11:32 AM, Romain Francois wrote: Hello, WRE contains the following information about the exec subdirectory of a package : Subdirectory exec could contain additional executables the package needs

Re: [Rd] Wishlist: Navigate to Index page of help when no topic (PR#13872)

2009-08-05 Thread Romain Francois
-- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/vsK1 : R parser package on CRAN |- http://tr.im/vshK : Transfer files through Rserve `- http://tr.im/vfxe : R GUI page on the R wiki __ R

[Rd] exec subdirectory of a package

2009-08-05 Thread Romain Francois
( sprintf( file not found: '%s' , scriptfile ) ) } trail - if( length(args) 2 ) paste( tail( args, -2 ), sep = ) else cmd - sprintf( '%s %s', scriptfile, trail ) system( cmd ) -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/vsK1

Re: [Rd] Using svSocket with data.table

2009-07-25 Thread Romain Francois
anything that worked in exactly this way i.e. i) R to R ii) CLI non-blocking and iii) no need to startup R in a special way Regards, Matthew -- Romain Francois Independent R Consultant +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/tlNb : RGG#155, 156 and 157 |- http

Re: [Rd] package post install instructions

2009-07-03 Thread Romain Francois
A somewhat related question. Can one install a hook to be called when __any__ package is loaded. Something like this : setHook(packageEvent(.*, onLoad), function(...) grDevices::ps.options(horizontal=FALSE)) Romain On 07/02/2009 09:38 AM, Romain Francois wrote: Hello, I've

[Rd] package post install instructions

2009-07-02 Thread Romain Francois
Hello, I've looked in tools:::.install_packages for some sort of hook that would let packages developers point to further instructions after a package is installed. For example, some packages need to setup environment variables, ... Is there something I have missed ? Romain -- Romain

Re: [Rd] active bindings and ls.str

2009-06-30 Thread Romain Francois
On 06/30/2009 10:35 AM, Thomas Friedrichsmeier wrote: On Monday 29 June 2009, Romain Francois wrote: I'm attaching a patch that prints this instead: ls.str() xx :active binding Although a better behaviour would be to show the binding function. I can see your point

Re: [Rd] active bindings and ls.str

2009-06-30 Thread Romain Francois
On 06/30/2009 11:41 AM, Thomas Friedrichsmeier wrote: Hi, On Tuesday 30 June 2009, Romain Francois wrote: Not sure your trick is full-proof. What happens when the variable you copy is already an active binding ? see promises, below. There should be another way to track

[Rd] progress bar

2009-06-30 Thread Romain Francois
the top-level). 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

[Rd] active bindings and ls.str

2009-06-29 Thread Romain Francois
: active binding Although a better behaviour would be to show the binding function. Romain -- Romain Francois Independent R Consultant +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr Index: src/library/utils/R/str.R === --- src

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

2009-06-27 Thread Romain Francois
is Windows, though... Has anybody faced this problem before? Best regards, Carlos J. Gil Bellosta http://www.datanalytics.com -- Romain Francois Independent R Consultant +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr __ R-devel@r-project.org

Re: [Rd] R_parseVector and syntax error [was: error messages while parsing with rniParse]

2009-06-19 Thread Romain Francois
Duncan Murdoch wrote: Simon Urbanek wrote: On Jun 18, 2009, at 17:02 , Duncan Murdoch wrote: Romain Francois wrote: Hello, [I'm redirecting this here from stats-rosuda-devel] When parsing R code through R_parseVector and the code generates an error (syntax error), is there a way

Re: [Rd] R_parseVector and syntax error [was: error messages while parsing with rniParse]

2009-06-19 Thread Romain Francois
Duncan Murdoch wrote: Romain Francois wrote: Duncan Murdoch wrote: Simon Urbanek wrote: On Jun 18, 2009, at 17:02 , Duncan Murdoch wrote: Romain Francois wrote: Hello, [I'm redirecting this here from stats-rosuda-devel] When parsing R code through R_parseVector

[Rd] R_parseVector and syntax error [was: error messages while parsing with rniParse]

2009-06-18 Thread Romain Francois
api. Would it be possible to add yet another entry point to the parser that would basically wrap R_parseVector so that it would have an extra char* argument that would bring back the error message if there is an error? Romain Simon Urbanek wrote: On Jun 15, 2009, at 12:05 , Romain Francois

[Rd] calling handlers within R_tryEval

2009-06-16 Thread Romain Francois
, R_GlobalEnv, R_BaseEnv, R_NilValue, R_NilValue); so I guess what I am trying to do is add cend and/or handlerstack to this context. Is this possible ? Are there examples of packages doing this ? Romain -- Romain Francois Independent R Consultant +33(0) 6 28 91 30 30 http

Re: [Rd] calling handlers within R_tryEval

2009-06-16 Thread Romain Francois
yet to get done. luke On Tue, 16 Jun 2009, Romain Francois wrote: Hello, When using R_tryEval (from JRI in my case), is there a way to setup error recovery strategy and more generally calling handlers. From my reading of context.c, R_tryEval calls R_ToplevelExec which creates a context like

Re: [Rd] internal and external debugging [was: [R] step by step debugger in R?]

2009-05-28 Thread Romain Francois
/2009-April/053128.html [3] : http://cran.r-project.org/web/packages/debug/index.html [4] : http://cran.r-project.org/doc/Rnews/Rnews_2003-3.pdf -- Romain Francois Independent R Consultant +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr

Re: [Rd] Can a function know what other function called it?

2009-05-26 Thread Romain Francois
Duncan Murdoch wrote: On 5/24/2009 10:23 AM, Romain Francois wrote: Duncan Murdoch wrote: On 23/05/2009 4:55 PM, Robert Gentleman wrote: Kynn Jones wrote: [snip] and you have a breakpoint in bar, you could not (easily) distinguish which of the two calls to bar was active

Re: [Rd] [R] step by step debugger in R?

2009-05-25 Thread Romain Francois
0.2 0.2 0.2 0.2 0.2 0.4 0.3 0.2 0.2 0.1 ... $ Species : Factor w/ 3 levels setosa,versicolor,..: 1 1 1 1 1 1 1 1 1 1 ... return ls.str() rBusy(1) x : num 5 rBusy(0) Browse[1] rBusy(0) -- Romain Francois Independent R Consultant +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr

Re: [Rd] [R] step by step debugger in R?

2009-05-25 Thread Romain Francois
Simon Urbanek wrote: On May 25, 2009, at 4:54 PM, Romain Francois wrote: Simon Urbanek wrote: [snip] I need to read more about embedding R (as in section 8 of WRE). I know you can supply your own implementation of the REPL, but I am not sure this includes the one that goes on once

Re: [Rd] [R] step by step debugger in R?

2009-05-24 Thread Romain Francois
Robert Gentleman wrote: Hi, I stripped the cc's as I believe that all read this list. Romain Francois wrote: [moving this to r-devel] Robert Gentleman wrote: Hi, Romain Francois wrote: Duncan Murdoch wrote: On 5/22/2009 10:59 AM, Michael wrote

Re: [Rd] Can a function know what other function called it?

2009-05-24 Thread Romain Francois
a particular line of a file with whatever code you like; this could be used in writing a nice source-level debugger. yes Duncan Murdoch best wishes Robert -- Romain Francois Independent R Consultant +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr

Re: [Rd] [R] step by step debugger in R?

2009-05-23 Thread Romain Francois
[moving this to r-devel] Robert Gentleman wrote: Hi, Romain Francois wrote: Duncan Murdoch wrote: On 5/22/2009 10:59 AM, Michael wrote: Really I think if there is a Visual Studio strength debugger, our collective time spent in developing R code will be greatly reduced

[Rd] package level connection API

2009-05-19 Thread Romain Francois
://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-project.org

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Romain Francois
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 Independent R Consultant +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr __ R-devel@r

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Romain Francois
, 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=TRUE) + } ) ) user system elapsed 0.011 0.000 0.011 Not sure what the right play is Wacek Kusnierczyk wrote: Romain Francois wrote

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Romain Francois
) ) ) ) ) ( ( ( ( (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 stuff, including

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Romain Francois
( ( ( ( ( .. 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 recommended packages

Re: [Rd] proposed changes to RSiteSearch

2009-05-07 Thread Romain Francois
for searching R-help archive than functions in packages. Ideas? comments? Andy Notice: This e-mail message, together with any attachme...{{dropped:12}} __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Romain

Re: [Rd] proposed changes to RSiteSearch

2009-05-07 Thread Romain Francois
://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 Romain posted, not hitting your site. Best, Andy Jon -- Romain Francois Independent R Consultant +33(0) 6 28 91 30 30

Re: [Rd] vignettes in a bundle

2009-04-28 Thread Romain Francois
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 wrote: Hi Robin, Something like: echo=FALSE= bib - system.file( bib, mybib.bib, package = yada ) cat( \\bibliography{,bib,}\n) @ It would also

Re: [Rd] speedup for as.matrix.dist

2009-04-24 Thread Romain Francois
system elapsed 3.153 0.480 3.782 -- Romain Francois Independent R Consultant +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr Index: src/stats.h === --- src/stats.h (revision 48386) +++ src/stats.h (working copy) @@ -52,4

<    1   2   3   >