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

32 lines
498 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>。
- 启动REPL交互式命令行
`R`
- 以原生模式启动R即一个空白会话结束时不保存工作空间
`R --vanilla`
- 执行一个文件:
`R -f {{path/to/file.R}}`
- 执行一个R表达式然后退出
`R -e {{expr}}`
- 使用调试器运行R
`R -d {{debugger}}`
- 检查来自软件包源的R包
`R CMD check {{path/to/package_source}}`
- 显示版本:
`R --version`