Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R6 classes - update for wrappers #82

Merged
merged 120 commits into from
Mar 21, 2022
Merged

R6 classes - update for wrappers #82

merged 120 commits into from
Mar 21, 2022

Conversation

jmbarbone
Copy link
Collaborator

updates for some progress in #75

These are mostly the easy ones -- moving the code around.

Changes outside of these are for the updated named. I'm not too worried about how some of the tests look right now and we can make some changes between piped operations and calling methods directly from the R6 objects (e.g., moving from wb <- wb_add_worksheet(wb, "sheet") to wb <- wb_workbook() %>% wb_add_worksheet("sheet") or just wb$addWorksheet()

@JanMarvin
Copy link
Owner

Regarding the function names: I was just under the impression, that it might be a bit confusing, if many function start with wb_ which makes code harder to read. Though I haven't written code like this, therefore no real world impression and was just curious watching.

Ideally I would want all piped and wrapped functions to be named identical (otherwise we create even more confusion).

wb <- workbook()
wb_add_worksheet(wb, "Sheet1")
wb$add_worksheet("Sheet1")

Copy link
Owner

@JanMarvin JanMarvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, a big step, but of course I'm still nitpicking.

We should also add unit tests for the wrapper functions (just to be sure, but increasing coverage is another task of ours).

If you want to, feel free to go through my comments, change what you think is useful and merge afterwards. We can always cleanup in additional pull requests.

R/class-comment.R Show resolved Hide resolved
R/class-comment.R Show resolved Hide resolved
R/class-workbook-utils.R Show resolved Hide resolved
R/class-workbook-utils.R Show resolved Hide resolved
R/class-workbook-utils.R Show resolved Hide resolved
R/class-workbook-wrappers.R Show resolved Hide resolved
R/class-workbook-wrappers.R Show resolved Hide resolved
R/loadWorkbook.R Show resolved Hide resolved
R/utils.R Show resolved Hide resolved
R/wb_functions.R Outdated Show resolved Hide resolved
@JanMarvin
Copy link
Owner

Oh and do you know why the lintr is complaining about no visible global functions? It looks a lot like false positives, but I' curious.

@jmbarbone
Copy link
Collaborator Author

Oh and do you know why the lintr is complaining about no visible global functions? It looks a lot like false positives, but I' curious.

No idea. I can see the functions. We must have confused it too much.

@jmbarbone
Copy link
Collaborator Author

@JanMarvin, okay, with those updates I think this might be in a better shape to be merged.

The updates for #84 are branched from this branch and those should make up for my decreasing of the test coverage...

@JanMarvin
Copy link
Owner

JanMarvin commented Mar 19, 2022

hooray, merge when ready! 🥳
[edit] and please, after merge do not continue in this pull request. it's getting harder and harder to find things. maybe make this one pt1 or so

@jmbarbone jmbarbone merged commit bb6449d into main Mar 21, 2022
@jmbarbone jmbarbone mentioned this pull request Mar 21, 2022
@jmbarbone jmbarbone deleted the r6-classes branch May 5, 2022 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants