Michael D
Michael D

Reputation: 1

RStudio, Expand the number of lines the console shows

For some reason, the normal R program stopped working on my Mac. So I've needed to utilize RStudio. RStudio does not allow the viewing of the size of the code I am running. Over 1000 outputs of data. Is there a way to increase the number of lines that the console shows?

Upvotes: 0

Views: 2279

Answers (1)

Ian Campbell
Ian Campbell

Reputation: 24878

Edit:

Looks like there are two problems.

  1. R Studio limits the number of lines printed
  2. R Studio limits the size of the console buffer

To fix number 1, you need Limit length of lines displayed in console to:

enter image description here

Also don't forget to set options(max.print=10000) or whatever number.

For number two you need:

rstudioapi::writeRStudioPreference("console_max_lines", 10000)

Upvotes: 2

Related Questions