I think that the "Document Package" menu item, also available via Cmd/Ctrl-Shift-D, is broken in the new RStudio. When I select it, I see:
==> roxygen2::roxygenize('.', roclets = c('rd', 'collate', 'namespace')
Error: unexpected '}' in "suppressPackageStartupMessages({ Sys.setlocale('LC_COLLATE', 'C'); roxygen2::roxygenize('.', roclets = c('rd', 'collate', 'namespace') }"
Execution halted
Exited with status 1.
Seems like a closing paratheses is missing in the call to roxygenize().