[R] readLines on open connection reads only first write on MacOS

2024-10-28 Thread martin gregory via R-help
I was using readLines to read data from a file which is being written to by another process. readLines documentation says "If the connection is open it is read from its current position". With R 4.4.1 on Linux 5.15.160 this is true but does not seem to be the case as far as R 4.4.1 on MacOS 12.7

Re: [R] If loop

2024-08-10 Thread martin gregory via R-help
> On 9. Aug 2024, at 10:45, CALUM POLWART wrote: > > Or use <<- assignment I think. (I usually return, but return can only > return one object and I think you want two or more > One can return multiple objects by putting them in a list and returning the list. Martin __

Re: [R] Calling Emacs Lisp Code/Function from R

2023-11-10 Thread Martin Gregory via R-help
Hi, if you run a server in your Emacs session you can use emacsclient to send a lisp call to the server. There's an example here: https://emacs.stackexchange.com/questions/54156/how-can-i-query-emacs-from-a-separate-process/54161#54161 Regards, Martin Gregory On 11/10/23 11:18, Duncan Murdoc

Re: [R] lines through points in lattice legend

2023-01-29 Thread martin gregory via R-help
Hi Kenneth, replacing the auto.key argument with key = list(space = "right", lines = list(type="b", pch=21:22, fill = c("white", "black")), text = list(c("a","b"))) works, but is definitely not simpler. Given that your choice of points is so distinctiv