[R] Underline only colnames in grid.table

2010-10-29 Thread robbert blonk
Dear all, I would like to underline only the colnames in a table as e.g. grid.draw(tableGrob(head(iris, 10), name=test)) I can imagine you should use grid.edit or so, bu I can't figure out how... Does anyone have a suggestion? Thanks Robbert windows xp R 2.10.1 -- View this message in

[R] xyplot second y-xis and legend

2010-03-29 Thread robbert blonk
Dear list, I try to set a secondary y-axis in a lattice xyplot. This works. However, I am unable to set a proper legend/key together with the 2nd y-axis under general xyplot procedures. See example below. The combination of the par.settings with simpleTheme and other settings seems to go

[R] Pipe /shell - R does not wait

2010-02-01 Thread robbert blonk
Dear All, Within a large script, I try to invoke a second program (called e.g. XXX) from R using shell or pipe. e.g.: readLines(pipe(XXX)) or: shell(XXX,intern=TRUE, wait = TRUE) After running the program, the script reads a file with solutions produced by the second program (XXX.001).

Re: [R] Pipe /shell - R does not wait

2010-02-01 Thread robbert blonk
Sorry, forgot to included the information. Working in Windows (although a try on linux gave the same problems) R 2.10.0 Do you suggest to update a newer version of R? regards, Robbert -- View this message in context: http://n4.nabble.com/Pipe-shell-R-does-not-wait-tp1458692p1458727.html

Re: [R] system vs shell wait command

2010-01-25 Thread robbert blonk
Hi, thanks a lot for your time! However, after testing the program on itself (out of the R env, I found out that something was wrong in the compilation of the linux version (segmentation problem, due to memory allocation?). Unfortunately the thrown error was not mentioned by R. Sorry for

[R] system vs shell wait command

2010-01-24 Thread robbert blonk
Dear All, I try to invoke a second program (called gencont) within a R script. However this second program needs some time to finish. After finishing the output should be read into R and used for further calculation. Under windows, it perfectly works: result-shell(gencont