rstudio / connectapi

An R package for interacting with the RStudio Connect Server API
https://pkgs.rstudio.com/connectapi/
Other
42 stars 25 forks source link

Shared Connect configuration across client packages #188

Open slodge opened 1 year ago

slodge commented 1 year ago

I seem to be using connectapi more and more frequently:

All of these usages seem to somehow end up using their own custom conventions for connect connections - e.g. pins with its c("auto", "manual", "envvar", "rsconnect") setup.

Is it worth implementing a standard set of ways to configure Connect connections so that users can set these up once and then use any connectapi-dependent package? If so, should connectapi be the place for this?

colearendt commented 1 year ago

Whew - it's been a while here, sorry for the delay @slodge !! I love this idea! The differing connections is definitely a pain 😞

I agree that we should have a consistent set of connection primitives that can then be used across packages: pins, rsconnect, connectapi, connectwidgets, etc. connectapi could definitely be such a place, although we may also decide to have somewhere more primitive be the original source (i.e. so rsconnect does not have a quasi-circular dependency).

This is definitely a bigger task / epic, so may be something we need to track / plan for internally.

slodge commented 1 year ago

Happy for you to decide where it goes 👍 Will leave architecture and planning decisions to the posit process 👍