Rkoans icon indicating copy to clipboard operation
Rkoans copied to clipboard

only the first koan runs

Open bhollan opened this issue 10 years ago • 1 comments

Is this part of the 'enlightenment'? Only the first koan runs and even when I get all the intentional errors fixed, this one doesn't continue.

Error in !karma$failed : invalid argument type

Just wondering if I should continue to wade through the koan running code.

bhollan avatar Mar 07 '16 23:03 bhollan

after karma is calculated, the code checks for !karma$failed. This may work in some instances, but in my case, RStudio/RKoans was unattached to karma, the testthat_results object.

substituting as.data.frame(karma)$failed == 0 for !karma$failed got rid of the error for me.

bhollan avatar Apr 13 '16 20:04 bhollan