cause of error?

When I run E19_main_script.R I get the following error:
"Error in currentFile[[1]][[14]] : subscript out of bounds"
I am not sure what is causing this?
probably around lines 57 to 81 in E19_main_script.R