Re: [Rd] Output pipes to TTY hang

2024-05-20 Thread Zafer Barutcuoglu
as Kalibera wrote: > > > On 5/20/24 07:36, Zafer Barutcuoglu wrote: >> Hi, >> >> I am seeing this on Linux as well as MacOS: Opening any output pipe from R >> 4.4.0 to TTY programs like "less"/"more" hangs, SIGINT-proof: >>> $ R/

[Rd] Output pipes to TTY hang

2024-05-19 Thread Zafer Barutcuoglu
Hi, I am seeing this on Linux as well as MacOS: Opening any output pipe from R 4.4.0 to TTY programs like "less"/"more" hangs, SIGINT-proof: > $ R/4.4.0/bin/Rscript -e 'pipe("less", "w")' > $ R/4.4.0/bin/Rscript -e 'cat("test", file="|less") > $ R/4.4.0/bin/Rscript -e 'cat("test", file="|more")

[Rd] int overflow writing long vectors to socketConnection

2021-10-11 Thread Zafer Barutcuoglu
Hi, Writing >=2GB to a socketConnection (e.g. via writeBin) does not work correctly, because of this int typecast in modules/internet/sockconn.c: > static size_t sock_write(const void *ptr, size_t size, size_t nitems, >Rconnection con) > { > Rsockconn this = (Rsockconn

[Rd] Clearing attributes returns ALTREP, serialize still saves them

2021-07-02 Thread Zafer Barutcuoglu
Hi all, Setting names/dimnames on vectors/matrices of length>=64 returns an ALTREP wrapper which internally still contains the names/dimnames, and calling base::serialize on the result writes them out. They are unserialized in the same way, with the names/dimnames hidden in the ALTREP wrapper,