Re: [Rd] How can I catch errors thrown from c via the Rcpp error() function?

2009-04-15 Thread Dirk Eddelbuettel
Kieran, On 15 April 2009 at 18:03, Kieran O'Neill wrote: | I am using the flowClust package from BioConductor, which is largely | implemented in c. For some of my data, the package occasionally (and | quite stochastically) encounters a particular condition which halts its | operation. At this

[Rd] How can I catch errors thrown from c via the Rcpp error() function?

2009-04-15 Thread Kieran O'Neill
Hi I am using the flowClust package from BioConductor, which is largely implemented in c. For some of my data, the package occasionally (and quite stochastically) encounters a particular condition which halts its operation. At this point, it calls the error() function defined by Rcpp, and hal

[Rd] (Not quite) Automatic Differentiation

2009-04-15 Thread John C Nash
Many thanks to Gabor Grothendieck for responding to my posting about Automatic Differentiation (invite from Shaun Forth for interaction with R developers) showing how one might use rSymPy and symbolic (rather than automatic) differentiation to get a function that computes gradients. See http:/

Re: [Rd] HTML help

2009-04-15 Thread Romain Francois
Hi, if the system that builds the html help page is latex capable, then it would not be too difficult to use the same trick wikipedia is using (generating a png file for each equation). Translating latex style markup into mathml is another game, see this: http://www1.chapman.edu/~jipsen/mathm

Re: [Rd] HTML help

2009-04-15 Thread mnorton52
Hi Jack, I'm not sure about the tag either, and it didn't work when I tried it. I think the approach this web page uses may help in writing mathematical symbols to HTML: http://comers.citadel.edu/math_sym2005.htm Cheers, Mike Jack (Zhan, Hua Ping) wrote: > > > HTML help is not right for m

[Rd] Correction to documentation of print.ls_str in utils package

2009-04-15 Thread Brian Diggs
In the documentation for print.ls_str (on the ls.str page) in the utils package, the description for max.level is not correct. It says "Default 0: Display all nesting levels." The default, according to the Usage on that page and the source code, is 1. Also, a value of 0 does not display all th

Re: [Rd] HTML help

2009-04-15 Thread Simon Urbanek
JAck, On Apr 14, 2009, at 22:50 , Jack (Zhan, Hua Ping) wrote: Hi,guys, HTML help is not right for math formula: For example: I got the following formula in help page of ca.jo in urca package: X_t = Pi_1 X_{t-1} + ... + Pi_k X_{t-k} + μ + Phi D_t + varepsilon_t , quad (t = 1, ..., T), Th

Re: [Rd] Automatic Differentiation for R

2009-04-15 Thread Gabor Grothendieck
Not sure if this is sufficient for your needs but R does include symbolic differentiation, see ?D, and the Ryacas and rSymPy packages interface R to the yacas and sympy computer algebra systems (CAS) and those system include symbolic differentiation. http://ryacas.googlecode.com http://rsympy.goog

Re: [Rd] Automatic Differentiation for R

2009-04-15 Thread John C Nash
In efforts to improve optimization tools for R, one of my interests has been getting automatic differentiation capabilities so that analytic rather than numerical derivatives can be used. They would be helpful in several other areas besides optimization, My timings show factors of the order of 1

[Rd] HTML help

2009-04-15 Thread Jack (Zhan, Hua Ping)
Hi,guys, HTML help is not right for math formula: For example: I got the following formula in help page of ca.jo in urca package: X_t = Pi_1 X_{t-1} + ... + Pi_k X_{t-k} + μ + Phi D_t + varepsilon_t , quad (t = 1, ..., T), This presentation is just not good, however, in most browser, with tag ,