shutdown PC after finishing a script shutdown PC after finishing a script windows windows

shutdown PC after finishing a script


You can call the cmd prompt directly from R

system('shutdown -s')

You can view other shutdown commands here: https://stackoverflow.com/a/162305/1362215. This may be useful if you want to perform other tasks.