Closed hadley closed 9 years ago
@hadley I like the proposed distinction between low and high level.
as_
should be an_
though, since perhaps users may assume a function starting with as_
is coercing an object to the suffix of that function name?@sckott Agreed that an_
is better, but maybe it's better still to stick with the existing convention and use droplet_
, image_
etc.
Would you mind adding me as a admin? I'm happy to make changes in a branch and submit pull requests if you want.
Added as collab.
No strong feeling on the prefixes
This is basically done now.
It feels like analogsea is currently fighting to be two things: both a low-level and a high-level wrapper. I'd recommend making this distinction more clear - for example, I'd rewrite
droplet_power_cycle
as:do_
(for digital ocean) andas_
(for analogsea) to distinguish the low-level and high-level apis. Obviously you'd want to think about that - I thinkdroplets_
is a bit long as a prefix (but it's not too bad)what
argument).print.droplet()
method should do an API call to get up-to-date statusIt looks like the majority of functions in
droplets.R
could use a common low-level function:(It might also make sense to document all these function in one file since their interface is identical)
I'd be happy to make these changes if they seemed ok to you.