Running out of memory

Welcome aboard.

Not a solution per se but see [ Displaying more than 1000 lines in the R Studio console?](Displaying more than 1000 lines in the R Studio console? - #7 by AJHatswell)
for a discussion of approaches and workarounds. RNotebooks sounds interesting