Hello,
So after 6 years of moving from Stata, I've finally found a question someone else doesn't seem to have a satisfactory answer for on google / stackexchange / here / Quora or any number of other sites I commonly consult.
Quite simply, I would like to be able to scroll back through more than 1000 lines in the console.
This should be possible you would think based on Tools>Global Options>Display>Limit length of lines... but this doesn't do anything other than go down in values. You cannot go up past 1000.
I have done quite a bit of searching, as it seems like a simple request, and it does seem to have come up repeatedly in different places since 2010 (and apparently stems back to coding decisions in 2008?). For example:
2010: Apparently then options(max.print=10000) would work - it does not now
stackoverflow how-to-increase-the-limit-for-max-print-in-r
2014: no real resolution
stackoverflow scrolling-back-through-the-rstudio-console
2016: No answer
stackoverflow avoid-string-printed-to-console-getting-truncated-in-rstudio
2017: A guide from an IT department setting it in global settings
link removed
2017: A suggestion to use 'rstudioapi::writeRStudioPreference("console_max_lines", 300)', which no longer works (this was version 3.6.2
2019: No answer, and a workaround using sink (which isn't really a substitute)
stack overflow rstudio-increase-console-line-limit
2019: Someone apparently making it editable, but sadly I don't understand the raw code (I use R, I'm not a programmer), to understand what they did, and how I can access it
2020: Answer of no, as the user tried to use the solution from 3.6.2 which no longer worked
rstudio community can-you-see-more-than-1000-lines-output-in-r-studio-console/80370
2020: Also unresolved
stackoverflow rstudio-expand-the-number-of-lines-the-console-shows
From the final link ,the author states:
"So I've done the above. Gone to preferences, set the console to display 10000 lines, I also put in my code options(max.print=10000). I still only get the bottom of my code outputs. My code take somewhere between 5 and 50 minutes to run depending on the specifics, but I still want to see all my code in the console. Heaven forbid there's an error somewhere, I have no clue where it is. I have over 2000 outputs that I need, and doing it piece meal takes too much time."
In case of interest, I'm similar. The work I do is complex, and at the moment involves simulating a dataset, then analysing it using a particular statistical method (I'm currently testing 3 different methods). I need to be able to follow each through as I see what they are doing along the way. I also output diagnostic values so if a method is doing something incorrectly I can see at which stage it happens. At present I'm just not able to go back. I've managed previously, but now have spent the last 2 hours searching for an answer, because it is bothering me so much.
It seems to be a not infrequent ask, so there must be a way to do this that I haven't found? I get that it might be a limiter on performance, but even with that health warning, there must be a way to show more? Even from when since this first came up (I found a topic in 2010) I had a good PC; an AMD64 X2 I think. I then upgraded to an i5, then again, and now again - the hardware has come on so much (from what was already a top end model). Surely now more than 1000 lines of output should be managable by even and entry level laptop - never mind a number crunching desktop?
Anyway thanks for reading, and also thankyou for the questions answered over the years - I've lost track of how many times I've been here and not had to register as someone had already answered the same thing