Error trying to import csv in R

I’m trying to set up my analyses in R, but getting stuck at the first step :sweat_smile:

mSet<-Read.TextData(mSet, “C:/Users/XXX/data_metabol_muscle_clean_PFAS.csv”, “colu”, “cont”);
[1] “Using slower file reader …”
Error in file(file, “rt”) : cannot open the connection
In addition: Warning message:
In file(file, “rt”) : cannot open file ‘C:/Users/XXX/data_metabol_muscle_clean_PFAS.csv’: No such file or directory
Error in if (class(dat) == “try-error” || ncol(dat) == 1) { :
missing value where TRUE/FALSE needed

This is not related to MetaboAnalystR, but likely to be your file path under Windows OS. Maybe this link will help

Thanks Jeff, I tried those options and I also ran a check to ensure file path is correct which it is…