Daniel James
Daniel James

Reputation: 1433

How Do I View All Output in Rstudio Console When the Output is Large

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.

Upvotes: 2

Views: 6126

Answers (1)

jay.sf
jay.sf

Reputation: 72593

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.

Upvotes: 1

Related Questions