Skip to Content
R 语言经典实例(原书第 2 版)
book

R 语言经典实例(原书第 2 版)

by J.D. Long, Paul Teetor
June 2020
Beginner to intermediate
522 pages
9h 6m
Chinese
China Machine Press
Content preview from R 语言经典实例(原书第 2 版)
R
入门和获得帮助
17
1.5.2.2 macOS
在主菜单中选择“文件”(File)→“退出”(Quit),或按下 Cmd+Q,或点击窗口左上方
的红色圆圈。
在所有操作系统中都可以使用 q 函数(q 代表
q
uit)来结束 R 程序和 RStudio
q()
注意,函数中必须包含一对空的圆括号。
1.5.3 讨论
退出时,R 会提示你是否保存当前工作空间,你有三种选择:
保存工作空间并退出。
不保存,但退出。
取消保存,并返回到命令提示符。
选择保存后,R 会在你的当前工作目录中生成一个后缀为
.RData
的文件。保存工作空间
会保存你创建的所有 R 对象。下次在同一目录中启动 R 时,工作空间将自动加载。若当
前工作空间中已存在同名文件,保存工作空间将会覆盖原有文件,因此在保存时需留心
以免覆盖重要数据。
我们建议你在退出时不要保存工作空间,而是始终明确保存项目、脚本和数据。我们还
建议你使用 R 用户界面的菜单中的全局(global)选项关闭 R 退出时的保存提示 , 选择
如下:工具(Tools)→全局选项(
Global Options
),如图 1-3 所示。这样的话,当你退
R RStudio 时,系统不会弹出窗口来提示你保存工作空间。但请记住,已经创建但
尚未保存的任何对象都将丢失!
1.5.4 另请参阅
更多有关当前工作目录的细节,请参见 3.1 节;关于如何保存工作空间,请参见 3.3 节;
也可以参见
R in a Nutshell
一书中第 2 章的内容。
1.6 中断 R 正在运行的程序 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)

机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)

Aurélien Géron
大规模数据分析和建模:基于 Spark 与 R

大规模数据分析和建模:基于 Spark 与 R

Javier Luraschi, Kevin Kuo, Edgar Ruiz
管理Kubernetes

管理Kubernetes

Brendan Burns, Craig Tracey

Publisher Resources

ISBN: 9787111656814