Closed HenrikBengtsson closed 5 years ago
Another example, that hits another piece of code, is:
library(listenv)
z <- as.listenv(1:2); names(z) <- c("a", "b")
target <- parse_env_subset(z[c("a", "b")])
## Error in !is.na(res$idx) && !is.na(map[res$idx]) :
## 'length(x) = 2 > 1' in coercion to 'logical(1)'
but this works:
target <- parse_env_subset(z[1:2])