Files
tldr/pages.zh/common/rscript.md

20 lines
403 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# R脚本
> 使用R编程语言运行脚本。
> 更多信息:<https://www.r-project.org>。
- 运行脚本:
`Rscript {{path/to/file.R}}`
- 以原生模式运行脚本(即一个不在结束时保存工作区的空会话):
`Rscript --vanilla {{path/to/file.R}}`
- 执行一个或多个R表达式
`Rscript -e {{expression1}} -e {{expression2}}`
- 显示R版本
`Rscript --version`