Not able to read the csv files and every time it shows an fatal error

Humm, I guess I was wrong about the R versions issue. What is your RStudio version?

Could you supply your code in a formatted block. See FAQ: How to format your code for an easy way to do this.

What happens if you try running this script in the Windows GUI?

What does the raw .csv file look like? Is it large?