[r] Allow specifying username and password