Skip to Content
R语言实战编程
book

R语言实战编程

by Garrett Grolemund
July 2025
Intermediate to advanced
252 pages
2h 38m
Chinese
O'Reilly Media, Inc.
Content preview from R语言实战编程

附录 A. 安装 R 和 RStudio

要开始使用 R,您需要获得自己的副本。本附录将向你介绍如何下载 R 和 RStudio,后者是一款让 R 更易于使用的软件应用程序。您将从下载 R 到打开第一个 R 会话。

R 和 RStudio 都是免费的,易于下载。

如何下载和安装 R

R 由一个国际开发团队维护,他们通过The Comprehensive R Archive Network 的网页提供 R 语言。网页顶部提供了三个下载 R 的链接:Windows、Mac 或 Linux。

Windows

要在 Windows 上安装 R,请单击 "下载 R for Windows "链接。然后点击 "基础 "链接。接下来,点击新页面顶部的第一个链接。该链接会下载一个安装程序,为 Windows 安装最新版本的 R。运行该程序,然后通过出现的安装向导进行操作。向导会将 R 安装到程序文件文件夹中,并在 "开始 "菜单中放置快捷方式。在计算机上安装新软件需要具备相应的管理权限。

Mac

要在 Mac 上安装 R,请点击 "下载 R for Mac "链接。然后,点击R-3.0.3 软件包链接(或最新版 R 的软件包链接)。系统会下载一个安装程序来指导你完成安装,安装过程非常简单。安装程序允许你自定义安装,但默认设置适合大多数用户。我从未发现有理由更改它们。如果你的电脑在安装新程序前需要密码,那么你需要在这里输入密码。

Linux

许多 Linux 系统都预装了 R,但如果你的系统已经过时,你还需要最新版本的 R。CRAN 网站在 "Download R for Linux "链接下提供了在 Debian、Redhat、SUSE 和 Ubuntu 系统上从源代码构建 R 的文件。点击该链接,然后按照目录路径找到你要安装的 Linux 版本。安装程序会根据你使用的 Linux 系统而有所不同。CRAN 通过将每组源文件与说明如何在系统上安装的文档或 README 文件进行分组来引导安装过程。

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

The Three Traps That Stymie Reinvention

The Three Traps That Stymie Reinvention

Ryan Raffaelli
The Human Factor in AI-Based Decision-Making

The Human Factor in AI-Based Decision-Making

Philip Meissner, Christoph Keding
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer
Coaching for High Performance

Coaching for High Performance

MIT Sloan Management Review

Publisher Resources

ISBN: 9798341663121