Can you see more than 1000 lines output in R Studio console

Hi there,

I found this code rstudioapi::writeRStudioPreference(console_max_lines, 300) in a topic in this community as I wanted a way to see more than 1000 lines in my R Studio console but it ran an error

Error in .rs.writePrefInternal("rs_writeUserPref", prefName, value) :
Type mismatch: expected ; got

So I edited it to rstudioapi::writeRStudioPreference("console_max_lines", as.integer(5000))

It ran without error but then when I tried to run my whole script and review the console, I was still limited to 1000 rows.

Any ideas how I can see more than 1000 rows in the console?

More than 1000 lines output in R Studio console


Welcome to the RStudio community!

Could you explain why you want to do this? If you expect to generate a lot of output, it's better to capture it into a variable or file.

Here is a link to a workaround using sink()


This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.