If the existing app has R6 classes in logic (e.g. for database connection) - is it more sensible to re-implement using a box/modules approach? #291
-
With Rhino, if you want to migrate an existing app that uses |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'd say box and R6 are perpendicular to each other. They serve a somewhat different purpose: R6 classes let you bundle data and code which operates on it; box modules let you structure the code of your application and express dependencies clearly. Feel free to use box and R6 together - just mark your R6 class with |
Beta Was this translation helpful? Give feedback.
I'd say box and R6 are perpendicular to each other. They serve a somewhat different purpose: R6 classes let you bundle data and code which operates on it; box modules let you structure the code of your application and express dependencies clearly. Feel free to use box and R6 together - just mark your R6 class with
#' @export
and import it where you need it.