How to increase the number of columns using R in Linux

前端 未结 6 1006
没有蜡笔的小新
没有蜡笔的小新 2020-11-29 02:17

This may seem menial, but it affects my productivity. I am using R in terminal mode on Linux. Unlike the Windows IDE, Linux limits the number of columns to 80, thus making h

6条回答
  •  旧巷少年郎
    2020-11-29 02:56

    I use this:

    wideScreen <- function(howWide=as.numeric(strsplit(system('stty size', intern=T), ' ')[[1]])[2]) {
       options(width=as.integer(howWide))
    }
    

    Because the COLUMNS environment variable, and tset, aren't updated when the window is resized, but stty size is.

提交回复
热议问题