2

Take for instance,

rnorm(9999999)

produces a very large output in the console that even if I scroll up to the last limit, I can not see all output.

I prefer solution(s) that will not require me to save the output.

Daniel James
  • 1,381
  • 1
  • 10
  • 28
  • 2
    `options(max.print = big_number)` – Ronak Shah Dec 17 '20 at 05:09
  • Maybe you're looking for `page()`? – A5C1D2H2I1M1N2O1R2T1 Dec 17 '20 at 05:27
  • https://community.rstudio.com/t/more-than-1000-lines-output-in-r-studio-console/3288/9 suggests `rstudioapi::writeRStudioPreference("console_max_lines", )` might do it, if I've understood you correctly (I haven't tried it - it needs RStudio 1.3.688, which I don't have at work). Probably need to set `max.print` too, as suggested by Ronak Shah – Hobo Dec 17 '20 at 06:18

1 Answers1

1

Do

oo <- options(max.print=2e+06)  ## set and store defaults
options(oo)  ## restore defaults

for two million rows to display (9999999 / 5).

In addition consider the lines cut-off. In RGui it may be configured using [Edit] > [GUI preferences] (see image below).

enter image description here

There are similar options for RStudio, consult this answer for more information.

jay.sf
  • 60,139
  • 8
  • 53
  • 110