我已多次测试过。
#can run in R
system("mplay32.exe /play c:/m1.mp3")
system("mplay32.exe /play c:\\m1.mp3")
#can run in XP CMD
start /b mplay32.exe /play c:\m1.mp3
#can not run in R
system("start /b mplay32.exe /play c:\m1.mp3")
system("start /b mplay32.exe /play c:\\m1.mp3")
system("start \/b mplay32.exe /play c:\\m1.mp3")
system("start \\/b mplay32.exe /play c:\\m1.mp3")
如何让start /b mplay32.exe /play c:\m1.mp3
在R中运行?