Skip to content

Null objects#127

Merged
shannonhaughton merged 6 commits into
mainfrom
null_objects
Jul 15, 2026
Merged

Null objects#127
shannonhaughton merged 6 commits into
mainfrom
null_objects

Conversation

@shannonhaughton

@shannonhaughton shannonhaughton commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

@shannonhaughton shannonhaughton requested a review from bzkrouse July 14, 2026 07:45
@shannonhaughton shannonhaughton linked an issue Jul 14, 2026 that may be closed by this pull request
Comment thread R/utils.R Outdated
#' @noRd
#'
check_display <- function(x) {
if(is.null(x) || (identical(class(x), "list") && length(x) == 0)) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think you can just use rlang::is_empty() here, can you check

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.

yes!

Comment thread R/utils.R Outdated
Co-authored-by: Shannon Haughton <106977606+shannonhaughton@users.noreply.github.com>
Comment thread R/utils.R Outdated
@shannonhaughton shannonhaughton merged commit 26281d6 into main Jul 15, 2026
6 checks passed
@shannonhaughton shannonhaughton deleted the null_objects branch July 15, 2026 07:22
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.

empty lists are converted to NULL

2 participants