I need this for a bigger project but I think this minimal reprex explains it best. I have the following function in R:
test <- function(x = 2^(1:9)) {