2017-02-22から1日間の記事一覧

メモ:formulaはそのエンクロージング環境を捕捉している

R

とかかれているのをふと見かけてなるほどなあと思ったのでメモ。 # formulas automatically capture their enclosing environment foo <- function(x) { y <- 10 ~ x + y } (https://github.com/hadley/rlang/blob/84a63a1a660cebff373b9db02ac37e04c934dbde…