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

Rename foo() #24

Open
nanxstats opened this issue Jun 6, 2023 · 5 comments
Open

Rename foo() #24

nanxstats opened this issue Jun 6, 2023 · 5 comments

Comments

@nanxstats
Copy link
Collaborator

There is an internal function defined inline named foo():

foo <- function(x) {

This function should be updated:

  1. Rename it to use a meaningful function name. See foo in Google's developer documentation style guide.
  2. Define it outside the export function. This is because currently this is only accessible within the parent function, and it is being redefined again every time the parent function is called, which is suboptimal for performance.
@nanxstats nanxstats changed the title Rename foo Rename foo() Jun 6, 2023
@nanxstats
Copy link
Collaborator Author

@fb-elong Any suggestions on how to name this function?

@elong0527
Copy link

How about get_seq_p?

@nanxstats
Copy link
Collaborator Author

@elong0527 Sounds good to me. I would also appreciate renaming the variable hhh which is a bit random.

@fb-elong
Copy link

fb-elong commented Jun 7, 2023

Seems the action item is

foo -> get_seq_p
hhh -> i.

@LittleBeannie, would you ok to create a PR for this when you get a chance?

@nanxstats
Copy link
Collaborator Author

@fb-elong Feel free to fork this repo and send PR from there.

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

No branches or pull requests

3 participants