Skip to content

Avoid ifelse() - #245

Closed
Bisaloo wants to merge 2 commits into
mainfrom
no-ifelse
Closed

Avoid ifelse()#245
Bisaloo wants to merge 2 commits into
mainfrom
no-ifelse

Conversation

@Bisaloo

@Bisaloo Bisaloo commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Because of bad performance.

I also went a bit further to simplify CTshow()

Comment thread R/misc.R
f <- \(.) {
. <- paste(unlist(.), collapse=",")
ifelse(grepl(",", .), sprintf("[%s]", .), .)
if (length(.) > 1).

@HelenaLC HelenaLC Aug 15, 2026

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

What is this dot after the parentheses-- typo? Shouldn't it be if-else here too?

@Bisaloo Bisaloo Aug 15, 2026

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 think you made it work in #246. Correct? If so, let's close this one.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Yes, I believe so. Sorry I was confused earlier.

@HelenaLC HelenaLC closed this Aug 15, 2026
@Bisaloo
Bisaloo deleted the no-ifelse branch August 15, 2026 16:17
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