I want to use R's System function in my code and so I had written simple one-liner to check whether it's properly running or not. So this was my one liner -
system("dir", intern = TRUE)
I am using Windows so it should give me the same output as it would give on Command Prompt (show all the files present in current directory). But instead it resulted in an error:
Error in system("dir", intern = TRUE) : 'dir' not found
delwith the samenot founderror. I think this is supposed to mean that it can't find the executable, but in this case it seems to be a red herring