Pass a function taking dot args to rstudio.sessionInit