That's a known issue. Try installing a build version of RStudio form here. RStudio 1.2.1568 solved the problem for me on macOS 10.14.6.