XQuartz opens automatically when RStudio opens

OP here. Seems like the issue I was having stopped on its own. Updating to RStudio version 1.1.456 and/or R version 3.5.1 may have helped.