Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to remove this vertical line in the R script background (R Studio 2020 version)

Tags:

rstudio

screenshot of vertical line

There is a vertical line that shows up automatically in the background of my blank R script - I have just downloaded the latest version of RStudio 2020. Any way to get a clear white view of the script without the line? thanks.

like image 265
alicemiao95 Avatar asked Jul 13 '20 04:07

alicemiao95


1 Answers

This is a "margin" which shows you when code gets to a certain width. Lots of people/standards choose to limit code width so that it's easier to read on the screen and if you decide to print it it won't overflow to the next line. To disable in Rstudio (at least my version of Rstudio...) in the top toolbar:

Tools -> Global Options -> Code (located in the sidebar) then choose the Display tab and uncheck the Show margin option.

like image 134
Dason Avatar answered Sep 22 '22 01:09

Dason