vscode 无法运行R语言代码

Rscript : 无法将“Rscript”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括
路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 1

  • Rscript "d:\WorkVs\RWork\practice\test.R"
  • ~
    • CategoryInfo : ObjectNotFound: (Rscript:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException