Skip to content

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

Answered by kamilzyla
FMKerckhof asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FMKerckhof
Comment options

Answer selected by FMKerckhof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants