-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Just as a matter of design: convenience functions like run, install, copy_from_url etc are good to have, but also highly generic. Because of this, there's a good chance that they will collide with exported functions in other packages. In fact update already collides with the function from stats.
Instead of S3, perhaps consider using R6 to define your dockerfile class. Then you can expose these functions as class methods without having to worry about namespace collisions.
How it would look:
shiny_dockerfile <- Dockerfile$
new()$
from("rocker/r-ver:devel")$
update()$
install("...")$
...instead of magrittr pipes, you use method chaining, which is basically the same idea expressed in OOP syntax.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels