I have an R library which uses identify() and system(com="xterm -e less /a/corresponding/file") to view files when I click on an x11() plot. I can successfully resize the xterm on Linux (i486) and Macos 10.4 (G4 and G5), but NOT Macos 10.4 (Intel). For example, on a new mac pro: # in a terminal,xterm,iterm,etc: xterm -e "printenv | less" # the resulting xterm resizes fine - eg text wraps at resized window boundaries. so i don't think the problem is in xterm (?) # BUT, in R: system(com="xterm -e 'printenv | less'") # the resulting xterm DOES NOT resize fine - eg text does not wrap at resized window boundaries. these both work fine on the other platforms, and i don't see any obviously important differences in the environment variables. i have confirmed this behaviour on two different out-of-the-box mac pros. perhaps there is a peculiarity with R's system() on macos/intel (i have no idea)? not being able to resize the resulting xterm turns out to be a major bummer for my application - any help towards debugging this would be much appreciated. thank you! -- +--------------------------------------------------------------+ | Jon Stearley (505) 845-7571 (FAX 844-9297) | | Sandia National Laboratories Scalable Systems Integration | +--------------------------------------------------------------+
Jon, I don't have access to a Mac Pro, so I can't test anything, but based on your report I found a bug in R_system that affects signal handling during "system" calls on Macs. Please test the current R-devel (39754) or R-2-4-branch (39755) to see if it solves your problem. Thanks, Simon On Oct 31, 2006, at 2:48 PM, Jon Stearley wrote:> I have an R library which uses identify() and system(com="xterm -e > less /a/corresponding/file") to view files when I click on an x11 > () plot. I can successfully resize the xterm on Linux (i486) and > Macos 10.4 (G4 and G5), but NOT Macos 10.4 (Intel). For example, > on a new mac pro: > [...] >