invoke api via tools:rstudio (v0.99 compatibility)