Skip to content

Convert anonymous functions into hidden functions - #338

Merged
cbeleites merged 40 commits into
developfrom
feature/238-anonymous-to-hiden-functions
Jul 14, 2021
Merged

cbeleites merged 40 commits into
developfrom
feature/238-anonymous-to-hiden-functions

Conversation

@GegznaV

@GegznaV GegznaV commented Jul 12, 2021 •

Copy link
Copy Markdown
Collaborator

UPDATED

In this PR:

  1. MAIN. Anonymous functions (in setMethod() and setReplaceMethod()) are converted into hidden functions (so the lines of code re-arranged accordingly so that functions were documented properly). Closes Refactoring: move anonymous functions into hidden functions #238
  2. ADDITIONAL. Some documentation style updates are also introduced in the files that were touched. E.g.:
    a. the position of some lines of code were switched;
    b. some lines in documentation re-indented;
    c. some typos were fixed;
    d. sections "Set generic", "Function" and "Unit tests" were added so that it was easier to navigate files in RStudio;
    e. Most of the parts of code rearranged to meet this order:
    - setGeneric() statement
    - definition of hidden function
    - setMethod() or set RepaceMethod() statement
    - unit tests
    f. in some places, where unit sets are missing, # TODO comments were added to indicate this. These comments have to be solved in future PRs.

@GegznaV
GegznaV marked this pull request as ready for review July 12, 2021 23:52
@GegznaV GegznaV mentioned this pull request Jul 14, 2021
@GegznaV
GegznaV marked this pull request as draft July 14, 2021 10:14
@GegznaV
GegznaV marked this pull request as ready for review July 14, 2021 12:34
@GegznaV

GegznaV commented Jul 14, 2021

Copy link
Copy Markdown
Collaborator Author

I reviewed my code not to leave any anonymous functions in setMethod() and setReplaceMethod(). I updated the description above too.

@cbeleites
cbeleites merged commit 535d8d8 into develop Jul 14, 2021
@cbeleites
cbeleites deleted the feature/238-anonymous-to-hiden-functions branch July 14, 2021 14:19
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.

Refactoring: move anonymous functions into hidden functions

2 participants