1
这里有两种方式
运行文件
> source('test.R')
注意到在R的环境里面运行脚本,可以保持变量仍然处于环境中
12
sudo chmod +x test.R %加入执行权限./test.R %运行R