Update plot during loop (R 3.5, R Studio Linux)

Updating a plot during a loop seems to be a known bug of RStudio.

There is a workaround : )

The command that is not updated in a loop here was the histogram command: 

histogram(rrarray)

What worked was this (link to source):

hg<-histogram(rrarray)
print(hg)

Happy loops : )


Cite this article:
Wolf Schweitzer: swisswuff.ch - Update plot during loop (R 3.5, R Studio Linux); published 19/12/2018, 16:55; URL: https://www.swisswuff.ch/wordpress/?p=1667.

BibTeX: @MISC{schweitzer_wolf_1638686391, author = {Wolf Schweitzer}, title = {{swisswuff.ch - Update plot during loop (R 3.5, R Studio Linux)}}, month = {December}, year = {2018}, url = {https://www.swisswuff.ch/wordpress/?p=1667} }