good catch; it was due to the auto-closing of brackets in RStudio