• Stars
    star
    796
  • Rank 57,222 (Top 2 %)
  • Language
    CSS
  • Created almost 13 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

R语言忍者秘笈

R语言忍者秘笈

很久以前我就提议把COS论坛上的R语言历史问题整理一下,必可成为一本国产经典书籍,但我们一直没动手。一方面我没时间,另一方面我还在等一个合适的写作工具。现在,我还是没太多时间,也没等到工具,所以我只好自己发明了一个工具,就是knitr,自己的工具必然顺手,比那狗血的Sweave灵活很多,它也顺便和GitHub/markdown一起解决了时间稀缺的问题,因为我不必找一大块时间来专注写作,只要我有几分钟时间,我就可以打开记事本写几行,反正GIT可以离线工作,markdown写起来也超级简单,跟写日志似的。最终“压倒骆驼的那根稻草”其实是pandoc,我埋头研究了几天之后决定,以后写东西尽量避免LaTeX,因为有pandoc在,大多数文档格式都不成问题了,我可以从md转HTML,也可以转Word,或LaTeX。LaTeX说让用户专注写作,不管格式,作为有八年经验的LaTeX用户,我认为这是LaTeX最大的谎言,劳资天天在忧心那图片是否浮动有没有?!

所以,我们用markdown写,完稿再排版。knitr使得我们只需要关注源代码,不用管输出,所有输出都是通过运行代码而得到的,这是文学化编程的思想。没有复制没有粘贴,一切自动化。本书离完成尚有很长一段距离,目前的书稿可以在https://bookdown.org/yihui/r-ninja/预览。

那么这本书的内容写什么?一个不完整大纲:

  1. 安装R
  2. 编辑器
    • RStudio
    • Emacs
  3. 数据结构
    • 向量,向量化运算
  4. 文本数据
    • 编码问题
    • 正则表达式
  5. OO特征
    • S3, S4, reference classes
  6. 图形
  7. 网络数据
    • download.files
    • XML
    • RCurl
    • 社会网络分析
      • 微博
      • 人人
  8. 统计模型
  9. 数据库
  10. 数据挖掘
  11. 自动化报告
  12. 高性能计算
  13. 程序包
    • 嵌C代码
    • 嵌Rcpp代码
    • roxygen(2)写文档
    • Profiling
    • 单元测试
  14. Linux
  15. 版本控制
    • GIT
    • GitHub
  16. Web编程
    • rApache
    • Rserve
    • Rook

希望大家可以想一些更有创意的标题,比如圣斗士体,“死斗!显式循环炼狱之卷”,“集合!分布式与并行计算之卷”,或火影体,等等。

本库中所有内容遵守CC BY-NC-SA 3.0协议,请君自重,别没事儿拿去传个什么新浪爱问百度文库以及XX经济论坛。有问题请到Issues里面报告。

More Repositories

1

knitr

A general-purpose tool for dynamic report generation in R
R
2,347
star
2

xaringan

Presentation Ninja 幻灯忍者 · 写轮眼
CSS
1,492
star
3

hugo-xmin

eXtremely Minimal Hugo theme: about 150 lines of code in total, including HTML and CSS (with no dependencies)
HTML
630
star
4

knitr-examples

A collection of knitr examples
TeX
473
star
5

servr

A simple HTTP server in R
R
267
star
6

hugo-ivy

A two-column Hugo theme ported from Ivy
HTML
264
star
7

formatR

Format R Code Automatically
R
238
star
8

knitr-book

Dynamic Documents with R and knitr
TeX
226
star
9

yihui.org

Personal website and discussion board of Yihui Xie | 谢益辉
HTML
217
star
10

animation

A gallery of animations in statistics and utilities to create animations
R
206
star
11

blogdown-jekyll

Automatically knit R Markdown documents, build them with Jekyll, and serve the website with servr locally
SCSS
199
star
12

rolldown

R Markdown output formats for storytelling
HTML
185
star
13

litedown

A lightweight version of R Markdown
R
169
star
14

xfun

Miscellaneous R functions
R
125
star
15

printr

Some (magical) printing methods for knitr
R
119
star
16

recharts

An R Interface to Apache ECharts (incubating)
R
117
star
17

bookdown-chinese

bookdown 中文书籍范例
TeX
101
star
18

hugo-prose

A Hugo theme derived from the XMin theme, and inspired by Wowchemy, Distill, and tufte.css
HTML
95
star
19

rmini

A minimal R package with examples of most common components
R
90
star
20

hugo-xmag

A minimal magazine theme for Hugo
HTML
85
star
21

runr

Run external programs from R (experimental)
R
85
star
22

crandalf

Check all reverse dependencies of your R package with Github Actions
R
71
star
23

twitter-blogdown

Fetch Twitter messages weekly and turn them into a website based on blogdown
HTML
67
star
24

bookdown-crc

A minimal example of using bookdown to write a book for Chapman & Hall/CRC
TeX
64
star
25

yihui.github.io

Old GitHub homepage of Yihui Xie
HTML
62
star
26

bookdown-minimal

An absolutely minimal bookdown example
58
star
27

shiny-apps

Some of my Shiny apps for fun
JavaScript
54
star
28

testit

A simple package for testing R packages
R
52
star
29

rlp

An Example of Using Literate Programming for R Package Development
R
52
star
30

latex-pass

Help you pass the LaTeX compilation by telling you which LaTeX packages are missing to compile your documents
R
48
star
31

fun

Use R for Fun
R
47
star
32

zdict.js

汉典网站数据(汉字、拼音、释义等)
JavaScript
47
star
33

highr

Syntax Highlighting for R Source Code
R
44
star
34

MSG

Modern Statistical Graphics (《现代统计图形》的附加包)
R
37
star
35

cn

Chinese blog of Yihui Xie
34
star
36

Rd2roxygen

Convert Rd to roxygen documentation
R
32
star
37

mime

Map filenames to MIME types
R
30
star
38

lyx-R

support for R in LyX (Sweave and knitr, ...)
R
28
star
39

xran

Xie's R Archive Network (experimental and for my personal interest only)
HTML
24
star
40

homebrew-cran-extra

A "CRAN extras" repository of some binary R packages for the Homebrew (cask) version of base R on macOS
R
22
star
41

travis-bin

Some binaries built for Ubuntu 18.04 (Pandoc and TeXLive)
Python
18
star
42

rnotebook

R Notebook based on JSON and R Markdown (experimental)
R
18
star
43

hugo-paged

A Hugo theme with the feel of printed media (inspired by paged.js)
HTML
17
star
44

en

English blog of Yihui Xie
16
star
45

travis-blogdown

A minimal example of building and deploying a blogdown-based website via Travis CI
16
star
46

knitr-talks

talks on the knitr package
R
15
star
47

r-shippable

Pre-install some packages for my R package CI+CD on Shippable.com
Shell
13
star
48

blogdown-hexo

A sample website based on blogdown and Hexo
CSS
10
star
49

configuration

My configuration files
Emacs Lisp
10
star
50

blogdown-yihui-template

A skeleton of my previous personal website based on blogdown and Hugo. I no longer use it.
HTML
10
star
51

thesis

A repo as an early attempt of my PhD thesis and discarded later. For my actual thesis, see
Shell
9
star
52

travis-exitwp

Upload your WordPress XML to this repo, and download Markdown posts in a minute
Shell
9
star
53

blogdown-static

A minimal example of building Rmd files under the static/ directory of a website based on blogdown and Hugo
HTML
8
star
54

misc.js

Miscellaneous tools and utilities in JavaScript
JavaScript
7
star
55

sunbjt.github.com

刘思喆的个人网站
JavaScript
6
star
56

ideas

personal activities
6
star
57

r-docker

A docker image for my own package development
Shell
6
star
58

r-devel

Compile the development version of R
Shell
5
star
59

tmate-r

Debug R problems on GHA via tmate
5
star
60

great-waterfall

水遁:大瀑布之术(说得这么玄乎,其实就一 Jekyll/CSS 主题额已)
CSS
5
star
61

appstat

Apps for teaching statistics
R
5
star
62

arith.js

简单的四则运算练习程序
JavaScript
5
star
63

homebrew-tinytex

The Homebrew formula for TinyTeX
Ruby
4
star
64

stat579

Stat 579 homework solutions
R
3
star
65

iBUGS

An Interface to R2WinBUGS by gWidgets
R
3
star
66

stat-sci-cranvas

The reactive programming paper for Statistical Science
TeX
3
star
67

dokuwiki

my DokuWiki plugins
PHP
2
star
68

raggle

A Shiny application for data mining competition
R
2
star
69

bibr

All your base, oh no, R citation, are belong to us
1
star
70

animation.yihui.name

a meta website for the animation package (i.e. redirecting to the real site)
HTML
1
star