Здесь упрощенная версия функции на CRAN (pedigreemm::pedigreemm()
)
myfun <- function(x, y) {
mc1 <- match.call()
# ...
# lot of things are done but no changes on mc1
# ...
mc2 <- evalq(mc1)
# mc2 is added to output
}
В чем причина evalq(mc1)
? В каких ситуациях mc1
будет отличаться от mc2
?