问题遇到的现象和发生背景
在VScode中运行Rscript
用代码块功能插入代码,请勿粘贴截图
Sys.setenv(LANGUAGE = "en")
options(stringsAsFactors = FALSE)
rm(list=ls())
运行结果及报错内容
Rscript : 无法将“Rscript”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 1
- Rscript "d:\lesson\lesson2\5.1_seurat_workflow.R"
- ~~~~~~~
- CategoryInfo : ObjectNotFound: (Rscript:String) [], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException
我的解答思路和尝试过的方法
按照csdn配置过R环境,重新下载过VScode我想要达到的结果
VScode能正常运行R的脚本