Can you use file.exists() to test whether a file exists in a directory that is NOT the working directory? To say it another way, can you use file.exists() while specifying a specific file path? I know it works to test the current working directory but I want to check a different directory.
If not, how could you test to see if a file exists in a directory other than the working directory?
Okay thank you - but is there a way to test whether a file exists in a specific directory using file name and file path as 2 separate arguments? I am trying to integrate a way to test file existence using both file name and file path as pre-existing objects (ie file -> "Dummy.csv" and path -> "~/R/Play".)