Thanks for the quick response, Jeremy! That was my first guess as well, but I don’t think that’s it (had checked them previously, had used a .csv from a different experiment and just deleted everything but the first 5 lines). I just tried taking out randomize() and running it without the randomization, and it did the same thing – took me through all 5 trials and then got stuck. I just looked back again at the .csv file, and realized the problem: there were 2 “blank” lines included at the end. No text was present, but the line numbers were showing up, so I’m guessing it was trying to read in those lines. Just deleted them out and the line numbers disappeared and the problem is resolved.
Thanks for the help!