Search code examples
csvrstudioworkspace

Issue with .csv file in Rstudio


I started a data analysis class where I use R and Rstudio. I'm currently dealing with an issue regarding .csv file: I have a file named "andore_2019.csv" located in a certain path in my Windows. When I search this .csv file with my Windows file explorer I find it. But when I use Rstudio, this file isn't visible in my workspace. I attach 2 pictures so you can see the issue. May someone help me, please?

enter image description here

enter image description here

Best regards,

I tried to desinstall and reinstall R and Rstudio. I just want to see my .csv files when I search in my Rstudio workspace. It seems that I can only see .R o .Rdata files.


Solution

  • First check the working directory

    getwd()
    

    then set it to required path

    setwd("your path")
    

    I have had similar issue in the past where file name length is too long in the past changing the file path to a shorter name has worked.