I see a chuck of code like this. It is for generating the output. What is list(...) for? Is it like the function of placeholder %s? THX
c(list(data = data, output = list(height = height)), list(...))
I see a chuck of code like this. It is for generating the output. What is list(...) for? Is it like the function of placeholder %s? THX
c(list(data = data, output = list(height = height)), list(...))
It's very easy to test this out yourself by writing a simple function:
f <- function(...) return(list(...))
f("hello", a = 1, b = 2:6)
#> [[1]]
#> [1] "hello"
#>
#> $a
#> [1] 1
#>
#> $b
#> [1] 2 3 4 5 6
Created on 2020-08-13 by the reprex package (v0.3.0)