I am running into some peculiarities with using read.csv
and I am pretty sure it has something to do with a setting on my computer, I just cannot figure out where/how.
Context: I am currently teaching an intro R class. Here I am, telling my students R is case-sensitive, also for file names. I try to show them an example and sure enough, (on my computer, R 4.0.3) read.csv
actually works when I write the file name with different cases!!! What...?
When I go to RStudio Cloud (which is what my students are using), I get the expected behavior - case-sensitivity.
So I am concluding it must be some setting on my computer. I've tested a number of files, in a number of Rprojects, and read.csv
is case-insensitive in all cases.
I've gone through my Global Options, checked my .Rprofile
(empty) and .Renviron
(only holds API keys) - can't find anything at first sight that would cause this behavior. Googling has not given me any results either.
What am I missing?