Skip to content

Commit 5c718d6

Browse files
jayqiCopilot
andauthored
Add description for .try_as_list
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4e6aa3f commit 5c718d6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

R/FunctionReporter.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,10 @@ FunctionReporter <- R6::R6Class(
455455
return(TRUE)
456456
}
457457

458-
# [description]
458+
# [description] attempt to coerce an expression to a list, returning a list
459+
# containing the result as `value` and a `listable` flag; on
460+
# error, log a warning and return the original object as
461+
# unlistable.
459462
.try_as_list <- function(x) {
460463
tryCatch(
461464
list(

0 commit comments

Comments
 (0)