我在终端中运行交互式R
,但是它没有使用终端的所有宽度。它只使用了 226 个字符中的 72 个。读取任何以交互方式显示的大量列的数据是非常不舒服的R
。
我正在urxvt
使用debian 9,8
.
小智 6
看?option
:
\n\n\nRun Code Online (Sandbox Code Playgroud)\n\xe2\x80\x98width\xe2\x80\x99: controls the maximum number of columns on a line used in\n printing vectors, matrices and arrays, and when filling by\n \xe2\x80\x98cat\xe2\x80\x99.\n\n Columns are normally the same as characters except in East\n Asian languages.\n\n You may want to change this if you re-size the window that R\n is running in. Valid values are 10...10000 with default\n normally 80. (The limits on valid values are in file\n \xe2\x80\x98Print.h\xe2\x80\x99 and can be changed by re-compiling R.) Some R\n consoles automatically change the value when they are\n resized.\n
查询值:
\n\nR> getOption("width")\n[1] 80\n
Run Code Online (Sandbox Code Playgroud)\n\n要更改该值(添加此值~/.Rprofile
以永久更改它):
options("width"=200)\n
Run Code Online (Sandbox Code Playgroud)\n