起因
因为BenchmarkDotNet生成图表,需要安装R才可以.顺便记录一下R.
修改R仓库地址
在R/R-4.1.1/etc目录下,找到Rprofile.site文件.
options(help_type="html")
local({r <- getOption("repos")
r["CRAN"] <- "http://mirrors.tuna.tsinghua.edu.cn/CRAN/"
options(repos=r)})
将R的安装目录加入系统环境中的,只是为了使用方便,可以全局使用
Rscript.exe .\BuildPlots.R