Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Same problem here. When I use the "testthat" library on my machine and run the exact same testing code it works fine. It throws the same error as you posted when I run it on Codewars.
Thanks to this kata, my sunday was bitter-sweet, but after a little nap, came back and solved it, the description could be a little bit misleading, but the learning was amazing!!! Thanks
My Code worke fine in RStudio. On Codewars, i get an error message:
Test Failed
object 'i' not found
1: expect_equal(f(5), 3) at tests.R:3
2: quasi_label(enquo(object), label)
3: eval_bare(get_expr(quo), get_env(quo))
4: f(5)
In R it works fine. But Codewars sends me:
Test Failed
actual
not equal toexpected
.'current' is not a factor
Why a factor? It has to be a character. as.factor not work...