Skip to content

Use dedicated base R functions to simplify some code patterns - #159

Merged
HelenaLC merged 7 commits into
HelenaLC:mainfrom
Bisaloo:misc-cleanup
Apr 24, 2026
Merged

Use dedicated base R functions to simplify some code patterns#159
HelenaLC merged 7 commits into
HelenaLC:mainfrom
Bisaloo:misc-cleanup

Conversation

@Bisaloo

@Bisaloo Bisaloo commented Apr 24, 2026

Copy link
Copy Markdown
Collaborator

This should also result in tiny performance improvements. However, if the modified functions are called in tight loops, the performance improvement may be noticeable.

Comment thread R/misc.R
Comment on lines +92 to +93
scales <- vapply(object@data, \(x) paste0(dim(x), collapse=","), character(1))
coolcat("Scales (%d): (%s)", scales)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I'm less sure about this one. It is probably worth running some extra tests for this.

@HelenaLC
HelenaLC merged commit 3c4d422 into HelenaLC:main Apr 24, 2026
@Bisaloo
Bisaloo deleted the misc-cleanup branch April 24, 2026 13:56
HelenaLC added a commit that referenced this pull request Jul 5, 2026
Use dedicated base R functions to simplify some code patterns

Former-commit-id: 3c4d422
Former-commit-id: 72f971c507daf37a960fdfb97a793d1372c7c1d4
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.

2 participants