有退出R编程的命令吗?

Mpi*_*ris 8 r

是否有任何可用于通过控制台退出Rstudio的命令?(与MATLAB 类似exitquit在MATLAB中)

Lar*_*nal 17

是.您可以使用该quit()命令退出R. 更简洁的是,quit命令被别名为q().

通常当你启动R时,你会被提醒这个命令.例如,在我的安装中,我看到:

R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
Run Code Online (Sandbox Code Playgroud)

请参阅此处的文档.