DATA MINING
Desktop Survival Guide by Graham Williams |
|||||
You can ask the operating system to perform a command with the
system command:
> system("sleep 10") # Run OS command sleep with argument 10 > system("sleep 10", wait=FALSE) # Run OS command but don't wait (MS/Windows) > system("sleep 10 &") # Run OS command but don't wait (GNU/Linux) > l <- system("ls", intern=TRUE) # Run OS command and collect output |