端末のすべての幅を使用するようにRを設定するには?

端末のすべての幅を使用するようにRを設定するには?

端末で対話的に実行されていますが、R端末の全幅を使用しません。 226文字のうち72文字のみを使用してください。インタラクティブに表示されている多数の列からデータを読み取ることは非常に不便ですR

私はurxvtdebian 9,8

ベストアンサー1

バラより?option

 ‘width’: controls the maximum number of columns on a line used in
      printing vectors, matrices and arrays, and when filling by
      ‘cat’.

      Columns are normally the same as characters except in East
      Asian languages.

      You may want to change this if you re-size the window that R
      is running in.  Valid values are 10...10000 with default
      normally 80.  (The limits on valid values are in file
      ‘Print.h’ and can be changed by re-compiling R.)  Some R
      consoles automatically change the value when they are
      resized.

クエリ値:

R> getOption("width")
[1] 80

この値を変更するには(~/.Rprofile永久に変更するにはこの値を追加してください):

options("width"=200)

おすすめ記事