R not being able to find the file despite being in correct directory

I have question regarding a project I have to do about a health student study. I cannot import the csv file via read.csv or read.csv2 despite having transformed all files to csv and being in the correct folder. Here are the command lines:

setwd ("C:/Users/fek/Desktop/Analyse i-Share")
getwd()


And here are the results in the console window:

setwd ("C:/Users/fek/Desktop/Analyse i-Share")

getwd()


[1] "C:/Users/fek/Desktop/Analyse i-Share"

TA<-read.csv2(file=Biobanque.csv, header=TRUE, sep=",", dec=",", fill=TRUE)


[1] Error in read.table(file = file, header = header, sep = sep, quote = quote, : objet 'Biobanque.csv' introuvable

To translate from french, it says it can't find the file!

• Could you please run list.files(getwd()) from within R and check if Biobanque.csv is listed in its output? And also the correct syntax here would be read.csv2(file="Biobanque.csv", header=TRUE, sep=",", dec=",", fill=TRUE) (the file name is a string, so it must be quoted). I think this is the source of your error. Jun 29, 2020 at 10:21