You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set_value_impl<-function(self, private, ...) {
# perform some actions...self
}
Because self and private are environments, they can be modified wherever. This means we'd be able to pull these values into separate functions and save some of the more complex functions in separate files.
@JanMarvin , if we have some other heavy lifting around the wbWorkbook class, I can try to knock this out in a weekend. It would present a lot of changes that would be hard/annoying to merge with any other development.
Don't recall anything urgent from the top of my head regarding wbWorkbook. I was thinking about exporting a couple of wbWorkbook functions to individual functions similar to write_data() and write_data_table(). But if there are other options let's go for it. After 0.3.1 there are still enough things to work on :)
There's some a dozen or so pending R6 issues that I haven't gotten to, so hopefully this sort of cleanup will make those a bit easier to manage. I don't think this will have any visible user changes, and should be pretty safe, too, unless I mess up.
R/class-workbook.R
has become quite massive (6000+ lines!)This can be reduced by a little
{R6}
wrapper trick (yes, more wrappers). An example can be seen with the{desc}
package: https://github.com/r-lib/desc/blob/main/R/description.Rmethod inside object:
function outside object:
Because
self
andprivate
are environments, they can be modified wherever. This means we'd be able to pull these values into separate functions and save some of the more complex functions in separate files.Essentially,
wb_function(wb, ...)
callswb$function(...)
callswb_function_impl(self, private, ...)
The text was updated successfully, but these errors were encountered: