楼主: igs816
17870 145

[其他] [R语言书籍]R Packages[重磅分享]   [推广有奖]

泰斗

5%

还不是VIP/贵宾

-

威望
9
论坛币
2694400 个
通用积分
18514.6619
学术水平
2744 点
热心指数
3467 点
信用等级
2560 点
经验
484578 点
帖子
5415
精华
52
在线时间
3589 小时
注册时间
2007-8-6
最后登录
2024-4-25

高级学术勋章 特级学术勋章 高级信用勋章 特级信用勋章 高级热心勋章 特级热心勋章

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
cover.jpeg
R Packages by Hadley Wickham
English | Apr 16, 2015 | ISBN: 1491910593 | 202 Pages | AZW3/MOBI/EPUB/PDF (conv) | 10.5 MB
                                                
Turn your R code into packages that others can easily download and use. This practical book shows you how to bundle reusable R functions, sample data, and documentation together by applying author Hadley Wickham’s package development philosophy. In the process, you’ll work with devtools, roxygen, and testthat, a set of R packages that automate common development tasks. Devtools encapsulates best practices that Hadley has learned from years of working with this programming language.

Ideal for developers, data scientists, and programmers with various backgrounds, this book starts you with the basics and shows you how to improve your package writing over time. You’ll learn to focus on what you want your package to do, rather than think about package structure.

Learn about the most useful components of an R package, including vignettes and unit tests
Automate anything you can, taking advantage of the years of development experience embodied in devtools
Get tips on good style, such as organizing functions into files
Streamline your development process with devtools
Learn the best way to submit your package to the Comprehensive R Archive Network (CRAN)
Learn from a well-respected member of the R community who created 30 R packages, including ggplot2, dplyr, and tidyr

--------------------------------------------------------------------------------------------------------------------------------

In This Book
This book will guide you from being a user of R packages to being a creator of R packages. In Chapter 1, Introduction, you’ll learn why mastering this skill is so important, and why it’s easier than you think. Next, you’ll learn about the basic structure of a package, and the forms it can take, in Chapter 2, Package Structure. The subsequent chapters go into more detail about each component. They’re roughly organized in order of importance:
Chapter 3, R code
The most important directory is R/, where your R code lives. A package with just this directory is still a useful package. (And indeed, if you stop reading the book after this chapter, you’ll have still learned some useful new skills.)
Chapter 4, Package Metadata
The DESCRIPTION lets you describe what your package needs to work. If you’re sharing your package, you’ll also use the DESCRIPTION to describe what it does, who can use it (the license), and who to contact if things go wrong.
Chapter 5, Object Documentation
If you want other people (including “future you”!) to understand how to use the functions in your package, you’ll need to document them. I’ll show you how to use roxygen2 to document your functions. I recommend roxygen2 because it lets you write code and documentation together while continuing to produce R’s standard documentation format.
Chapter 6, Vignettes: Long-Form Documentation
Function documentation describes the nitpicky details of every function in your package. Vignettes give the big picture. They’re long-form documents that show how to combine multiple parts of your package to solve real problems. I’ll show you how to use Rmarkdown and knitr to create vignettes with a minimum of fuss.
Chapter 7, Testing
To ensure your package works as designed (and continues to work as you make changes), it’s essential to write unit tests that define correct behavior, and alert you when functions break. In this chapter, I’ll teach you how to use the testthat package to convert the informal interactive tests that you’re already doing to formal, automated tests.
Chapter 8, Namespace
To play nicely with others, your package needs to define what functions it makes available to other packages and what functions it requires from other packages. This is the job of the NAMESPACE file and I’ll show you how to use roxygen2 to generate it for you. NAMESPACE is one of the more challenging parts of developing an R package, but it’s critical to master if you want your package to work reliably.
Chapter 9, External Data
The data/ directory allows you to include data with your package. You might do this to bundle data in a way that’s easy for R users to access, or just to provide compelling examples in your documentation.
Chapter 10, Compiled Code
R code is designed for human efficiency, not computer efficiency, so it’s useful to have a tool in your back pocket that allows you to write fast code. The src/ directory allows you to include speedy compiled C and C++ code to solve performance bottlenecks in your package.
Chapter 11, Installed Files
You can include arbitrary extra files in the inst/ directory. This is most commonly used for extra information about how to cite your package, and to provide more details about copyrights and licenses.
Chapter 12, Other Components
This chapter documents the handful of other components that are rarely needed:demo/, exec/, po/, and tools/.
The final three chapters describe general best practices not specifically tied to one directory:
Chapter 13, Git and GitHub
Mastering a version control system is vital for collaborating with others, and is useful even for solo work because it allows you to easily undo mistakes. In this chapter, you’ll learn how to use the popular Git and GitHub combo with RStudio.
Chapter 14, Automated Checking
R provides useful automated quality checks in the form of R CMD check. Running them regularly is a great way to avoid many common mistakes. The results can sometimes be a bit cryptic, so I provide a comprehensive cheat sheet to help you convert warnings to actionable insight.
Chapter 15, Releasing a Package
The life cycle of a package culminates with release to the public. This chapter compares the two main options (CRAN and GitHub) and offers general advice on managing the process.
2015-04-03_180437.png

本帖隐藏的内容

R Packages.rar (8.14 MB, 需要: 10 个论坛币) 本附件包括:
  • R Packages by Hadley Wickham.azw3
  • R Packages by Hadley Wickham.epub
  • R Packages by Hadley Wickham.mobi
  • R Packages by Hadley Wickham.pdf



二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Packages package R语言书籍 R语言书 Pack philosophy practical download together package

回帖推荐

jerker 发表于4楼  查看完整内容

这本书主要讲R包开发的各种细节和操作步骤,面向R包开发者,偏计算机方向,比官方的开发文档强太多了。 最主要的是,作者开发的ggplot 想必R用户无人不知,无人不晓
已有 4 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
accumulation + 100 + 1 + 1 + 1 精彩帖子
np84 + 100 精彩帖子
fantuanxiaot + 50 + 30 + 1 + 1 + 1 精彩帖子
jerker + 40 + 40 + 1 + 1 + 1 精彩帖子

总评分: 经验 + 290  论坛币 + 70  学术水平 + 3  热心指数 + 3  信用等级 + 3   查看全部评分

本帖被以下文库推荐

沙发
accumulation 学生认证  发表于 2015-4-3 14:52:21 来自手机 |只看作者 |坛友微信交流群
igs816 发表于 2015-4-3 14:51
R Packages by Hadley Wickham
English | Apr 16, 2015 | ISBN: 1491910593 | 202 Pages | AZW3/MOBI/EP ...
Thanks!
已有 1 人评分论坛币 收起 理由
jerker + 3 精彩帖子

总评分: 论坛币 + 3   查看全部评分

使用道具

藤椅
zngtian 发表于 2015-4-3 14:55:38 |只看作者 |坛友微信交流群
Download to see one see
已有 1 人评分论坛币 收起 理由
jerker + 3 精彩帖子

总评分: 论坛币 + 3   查看全部评分

使用道具

板凳
jerker 发表于 2015-4-3 16:30:03 |只看作者 |坛友微信交流群
这本书主要讲R包开发的各种细节和操作步骤,面向R包开发者,偏计算机方向,比官方的开发文档强太多了。
最主要的是,作者开发的ggplot 想必R用户无人不知,无人不晓
已有 1 人评分经验 论坛币 收起 理由
fantuanxiaot + 20 + 10 精彩帖子

总评分: 经验 + 20  论坛币 + 10   查看全部评分

使用道具

报纸
ePeople 发表于 2015-4-3 16:38:42 来自手机 |只看作者 |坛友微信交流群
igs816 发表于 2015-4-3 14:51
R Packages by Hadley Wickham
English | Apr 16, 2015 | ISBN: 1491910593 | 202 Pages | AZW3/MOBI/EP ...
贵了
已有 1 人评分论坛币 收起 理由
jerker + 3 精彩帖子

总评分: 论坛币 + 3   查看全部评分

使用道具

地板
jerker 发表于 2015-4-3 16:44:41 |只看作者 |坛友微信交流群
ePeople 发表于 2015-4-3 16:38
贵了
如果你准备着手R包的开发,真心不贵

使用道具

7
allain 在职认证  发表于 2015-4-3 18:52:24 |只看作者 |坛友微信交流群
kkkkkkkkkkkk

使用道具

8
qw789789 发表于 2015-4-3 19:06:03 |只看作者 |坛友微信交流群
R Packages_Hadley Wickham_2015
thx
已有 1 人评分论坛币 收起 理由
jerker + 3 精彩帖子

总评分: 论坛币 + 3   查看全部评分

使用道具

9
Nicolle 学生认证  发表于 2015-4-3 19:13:26 |只看作者 |坛友微信交流群
提示: 作者被禁止或删除 内容自动屏蔽

使用道具

10
hhbb979 在职认证  发表于 2015-4-3 19:20:28 |只看作者 |坛友微信交流群
好样的!
已有 1 人评分论坛币 收起 理由
jerker + 3 精彩帖子

总评分: 论坛币 + 3   查看全部评分

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jr
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-25 10:18