Skip to content
Prev 315240 / 398503 Next

The three-dot question

Dear all,

Why does not the three-dot accept arguments from the parent environment?
I am just confused with this error, can someone give me a hint?
+   {
+     if(a){
+         print(a)
+       }else
+       {
+         print(b)
+       }
+   }
+   {
+     b <- 3
+     testFun(a, b = b)
+   }
Error in print(b) : object 'b' not found


Thanks in advance!

Feng