R Command to check if a file exists in the directory
What is it:
Though Operating systems will have simpler way of doing this however when you are working in the programming environment having the ability to use the commands for creating or manipulating the files is always useful.
How to check if a file exists in the directory using R Command:
Step 1: If you do not know your active directory check the same using the below command.
Step 2: Use the below r command to check if the file exists in your current directory
**replace the “myFile” with your actual file name.
Note: Make sure you are using the commands after the ‘>’ symbol