Eval and environments in R: Why can't Eval() find a variable defined in the environment where it evaluates the expression

前端 未结 1 1636
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-28 18:02

I have a question concerning environments in evaluating expressions. Specifically, I have a function bnlearn::cpdist that takes a logical expression as an argument. I wish to

相关标签:
1条回答
  • 2021-01-28 18:20

    I had an issue like this. I solved it with super assignation on the variable that was not found in my function.

    var <<- 5
    
    0 讨论(0)
提交回复
热议问题