A fun test to see if R users understand how R works is to ask them to predict the behavior of the following snippet of code:
foo <- function(a, b) { if (a == 0) { return(1) } else { return(2) } }
foo(0, stop("Error!"))
foo(1, stop("Error!"))
foo <- function(a, b) { if (a == 0) { return(1) } else { return(2) } }
foo(0, stop("Error!"))
foo(1, stop("Error!"))
To be fair to JMW, I used to as well - and perhaps more importantly I was writing end user software in R and not doing my own data wrangling.
Which is still not any serious barrier in using R succesfully.