Is there a way to shut down the computer from inside R
r
Solution
You can try running a system command like this (for windows only):
system("shutdown -f -t 1")
For Mac/Linux try (permissions might not allow this, though):
system("shutdown -h now")
Warning: This command will force close all running processes...
Problem
Possible Duplicate: Shutdown Windows after simulation I was wondering whether there is a way to shut down the PC after some process has ended in R? ``` somefunction() Sys.shut.down() ```