rstudio / rsconnect

Publish Shiny Applications, RMarkdown Documents, Jupyter Notebooks, Plumber APIs, and more
http://rstudio.github.io/rsconnect/
129 stars 79 forks source link

connectUser / connectApiUser: let server be a URL #1061

Open aronatkins opened 2 months ago

aronatkins commented 2 months ago

When connectUser() and connectApiUser() are provided a server value that is a URL rather than a servers() name, consider treating that value as a Connect URL and call addServer() to add a server entry.

# existing use:
rsconnect::connectUser("alice", "connect")

# suggested enhancement:
rsconnect::connectUser("alice", "https://connect.company.com")

With this change, folks could add a new Connect account with a single call rather than the two that we require today.