'Why does Rstudio keep looking in the wrong place?

I set my working directory - ""C:/Users/chris/Desktop/Rstudio_source_files""

but keep getting an error indicating rstudio is looking somewhere else - "does not exist in current working directory ('C:/Users/chris/AppData/Local/Microsoft/Windows/INetCache/Content.Outlook/DUFHT1GF')"

> setwd("C:/Users/chris/Desktop/Rstudio_source_files")
> getwd()
[1] "C:/Users/chris/Desktop/Rstudio_source_files"
> cross_referenced_signature_table <-
+   cross_reference_signature_table_to_scinamic_docs(
+     signature_table = signature_table,
+     scinamic_documents_filename = "scinamic_documents_2022-03-18.csv")
Error: 'scinamic_documents_2022-03-18.csv' does not exist in current working directory ('C:/Users/chris/AppData/Local/Microsoft/Windows/INetCache/Content.Outlook/DUFHT1GF').

I expect R to look in the working directory for the designated file.


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source