Solution 1 was really helpful as the problem is with the .Rprofile.
So I look it up and found a set of rules for navigating file paths
".Library <- file.path(chartr("\", "/", R.home()), "library")"
contained withing the .Rprofile and applied this to my Codes to navifgate my access my data.
so instead of writing my code as "data<-read.csv("C:\Users\PC\Downloads\hotel_bookings.csv")"
I wrote it as "data<-read.csv("C:\Users\PC\Downloads\hotel_bookings.csv")"
and it worked