You cannot invoke that code by just pressing the green Run button. You need to either call it from a function or script, or else you need to go to the command line and invoke it, passing in apropriate data.
For example:
repvec( sprintf('bottles of beer on the wall\n'), 99)