Looks good: https://github.com/parsecsv/parsecsv-for-php
Otherwise just save the file and fix it with Rscript.