如何设置 R 使用终端的所有宽度?

Jia*_* Xu 6 linux r

我在终端中运行交互式R,但是它没有使用终端的所有宽度。它只使用了 226 个字符中的 72 个。读取任何以交互方式显示的大量列的数据是非常不舒服的R

我正在urxvt使用debian 9,8.

小智 6

?option

\n\n
\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
Run Code Online (Sandbox Code Playgroud)\n
\n\n

查询值:

\n\n
R> getOption("width")\n[1] 80\n
Run Code Online (Sandbox Code Playgroud)\n\n

要更改该值(添加此值~/.Rprofile以永久更改它):

\n\n
options("width"=200)\n
Run Code Online (Sandbox Code Playgroud)\n