Yep. reprexes have to be self-contained, so it's likely it doesn't know where test2.csv is. That's not a bad thing, because no one else has that file either, so they wouldn't be able to reproduce your work anyhow!
See this thread for how to include your data in a reprex:
I also recently wrote up a quick post with gifs on how to use datapasta with reprex here: