Check_files error with .r solution code

To whom it may concern,

I have been trying to solved the error in the check_files from my solution been made in R. Does anyone have a solution to it?

Thank you for your time

Hi. Please keep in mind the question guidelines.