Skip to Content
高效R语言编程
book

高效R语言编程

by Colin Gillespie, Robin Lovelace
August 2018
Intermediate to advanced
227 pages
4h 16m
Chinese
China Electric Power Press Ltd.
Content preview from 高效R语言编程
46
2
GIT/SVN
项目设置允许
RStudio
为你的版本控制系统提供一个图形化界
面,详见第
9
章。
R
版本设置允许
RStudio
指定
R
的版本和解释器,对某些项目来说,这种
版本可能更快。
Restore .RData
:取消选中
Restore .RData
复选框将禁止加载先前创建的
R
对象。这不仅能使
R
启动更快也能减少由先前创建的对象导致的错误。所
以,我们建议你取消选中该复选框(默认是选中的)。
Code-editing
(代码编辑)选项可以使
RStudio
适应你的编码风格,例如,
禁止括号输入自动完成,很多有经验的程序员可能觉得其很讨厌。
Vim
式使
RStudio
像(部分地)
Vim
模拟器一样工作。
Diagnostic
(诊断)设置可通过添加额外的诊断或在诊断拖慢计算机时移
除诊断从而提高
RStudio
的效率。对于要在老旧、低配置的计算机上使用
RStudio
分析大数据集的程序员来说,该项设置应认真对待。
外观:如果你正在努力地查看源代码,修改默认字体大小可以减少眯眼看
屏幕的时间从而让你更高效。其他的外观设置跟美学联系较多,例如字体
类型和背景颜色是很重要的,因为舒适的编程环境可以提高生产率。可通
过“
Tools
→“
Global Options
”菜单来修改外观设置。
自动完成功能
R
提供一些基本的自动完成功能。输入函数名的开头,如 rnrnorm() 的缩
写),然后按
Tab
键两次将显示以 rn 开头的所有的函数名,本例中,将显示
rnbinom rnorm ...
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

数据科学之编程技术:使用R进行数据清理、分析与可视化

数据科学之编程技术:使用R进行数据清理、分析与可视化

迈克尔 弗里曼, 乔尔 罗斯
R数据科学

R数据科学

Hadley Wickham, Garrett Grolemund

Publisher Resources

ISBN: 9787519820855