[R] Recursive function for lists

Eric Lecoutre lecoutre at stat.ucl.ac.be
Mon Jun 10 14:23:29 CEST 2002

Hi to all R/S gurus,

I am developping a library to export R/S objects to HTML (there was
developments of this library past year, by myself and Mathieu Ros, but we
never finished it).

For that, I wrote HTML.* functions handled by the generic method HTML.
At this step, allmost all objects exportations are possible: matrix,
atomic, data.frame, functions and even plots... but I still don't succeed
to export generic lists.

Does it exist a function to recursively run through a list and apply a
function only to terminal nodes?
I tried to sapply my HTML.list function to a list and expected that it
recursively worked but it's not the case.

Thank you very much!

Eric Lecoutre

PS: I am ready to send my actual code to any interested person. At this
step of development, the main function does create a new prompt, so that
each command entered is evaluated both in standard output and in HTML.

| Eric Lecoutre          | Statistics                                     |
| Voie du Roman Pays, 20 | Teaching assistant / Consultant                |
| 1348 Louvain-La-Neuve  | Université de Louvain-la-Neuve                 |
| Belgique               | lecoutre at stat.ucl.ac.be                        |
| (+32) (0)10 47 30 50   | http://www.stat.ucl.ac.be/ISpersonnel/lecoutre/|
|       We need statistical thinking, not rituals  -  Gigerenzer          |

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list