Execute Windows CMD command (PowerShell) from R script

Here is an example of how to execute the Windows CMD command or PowerShell from R script. You can run cmd.exe by using the system function, and input might be something that you can run in CMD.

How to calculate today’s date in Excel, VBA code in Excel, DAX, Power Query, R, PowerShell, CMD and SQL

No matter what kind of tool you use need to get today’s date remains. Here is how to do that in eight different environments.

Exit mobile version