r4i.cn carts do not run YSMenu. That cart is based on the EZ-Flash Vi.
I think the reason it was written that way was because RetroGameFan mentions it on their thread; but after I took a look at that cart's software it definitely isn't compatible with YSMenu. That gist file is old, it was a backup of the old r/flashcarts wiki that eventually moved to flashcarts.net, should probably remove it from public view soon.
You can, on the other hand, use TWiLight Menu++, and that's probably your best course of action.