Skip to content

Rename foo() #228

Closed
Closed
@nanxstats

Description

@nanxstats

There are two internal functions defined inline named foo():

foo <- function(x) {

foo <- function(n, beta, ...) {

These functions should be updated:

  1. Rename them to use a meaningful function name. See foo in Google's developer documentation style guide.
  2. Define them outside the export function. This is because currently they are only accessible within the parent function, and it is being redefined again every time the parent function is called, which is suboptimal for performance.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions