Yihui Xie Profile Banner
Yihui Xie Profile
Yihui Xie

@xieyihui

24,160
Followers
51
Following
72
Media
2,470
Statuses

Omaha, NE
Joined May 2009
Don't wanna be here? Send us removal request.
@xieyihui
Yihui Xie
6 years
I have a dream that one day all students and researchers will forget what "formatting a paper" even means. I have a dream that one day journals and grad schools no longer have style guides. I have a dream that one day no missing $ is inserted, and \hbox is never overfull.
@posit_pbc
Posit PBC
6 years
Announcing the 1st Bookdown Contest: We cordially invite you to submit your bookdown examples, so that future authors may create more beautiful/free/open-access books and future students no longer need to struggle with formatting their dissertations!
Tweet media one
7
139
316
18
240
1K
@xieyihui
Yihui Xie
6 years
Trying to continue the streak in 2018 from last year ()... The R Markdown book just arrived (thanks, everyone: ) Wait, it is still July? Okay, I'm going to sleep through the rest of this year.
Tweet media one
Tweet media two
@xieyihui
Yihui Xie
7 years
It seems I made it, and it's easy to summarize my 2017: Another year, another #rstats package (blogdown), another book, and still endless joy. The book has just been published by @CRCPress : (thanks @ProQuesAsker @apreshill ) Let's see what happens in 2018.
6
28
220
10
106
454
@xieyihui
Yihui Xie
5 years
At #JSM2016 I showed a voice-activated Shiny app (). Today 11:55am I'll show an R Markdown example activated by camera (face detection): If you can't come to my talk, you can play with it by yourself: #JSM2019
8
82
343
@xieyihui
Yihui Xie
8 years
My #rstudioconf slides: 1) Advanced Rmd 2) blogdown 3) Extending Rmd
2
69
221
@xieyihui
Yihui Xie
7 years
The blogdown book package just arrived at my door (this sounds similar to last year ). Not sure why they sent the expensive hardback copies this time, but it feels good to have something solid in my hands at the end of a year.
Tweet media one
Tweet media two
Tweet media three
@xieyihui
Yihui Xie
8 years
The bookdown book package just arrived at my door. Love the Alegreya & Source Code Pro fonts on paper. Also happy that the book is so thin!
Tweet media one
Tweet media two
Tweet media three
2
33
202
4
29
223
@xieyihui
Yihui Xie
7 years
It seems I made it, and it's easy to summarize my 2017: Another year, another #rstats package (blogdown), another book, and still endless joy. The book has just been published by @CRCPress : (thanks @ProQuesAsker @apreshill ) Let's see what happens in 2018.
@xieyihui
Yihui Xie
8 years
One year, one package, one book, and endless joy. That basically summarizes my 2016. I think I'll be able to repeat the pattern in 2017.
6
38
162
6
28
220
@xieyihui
Yihui Xie
8 years
The bookdown book package just arrived at my door. Love the Alegreya & Source Code Pro fonts on paper. Also happy that the book is so thin!
Tweet media one
Tweet media two
Tweet media three
2
33
202
@xieyihui
Yihui Xie
6 years
I guess I spent 30 hours in total on revamping (with help from @chrisderv and @ustcer_ztc ), among which 6 hours were spent on creating a single D3 bubble chart on the tags page (yes, I'm an absolute beginner of D3) 😂
@posit_pbc
Posit PBC
6 years
We have revamped the bookdown website (). Please come and see the 200 free and open-source books! Learn more about how you can contribute more books to or help us improve the website at
Tweet media one
2
289
646
4
35
180
@xieyihui
Yihui Xie
7 years
Slides of my #rstudioconf talk on blogdown: Sorry, I have to confess that I lied (apparently) when I said I could type insanely fast with HHKB. The HHKB was not even connected to my laptop... I added the truth to the slides. Enjoy!
2
37
175
@xieyihui
Yihui Xie
8 years
One year, one package, one book, and endless joy. That basically summarizes my 2016. I think I'll be able to repeat the pattern in 2017.
@posit_pbc
Posit PBC
8 years
Announcing bookdown: Authoring Books and Technical Documents with R Markdown.
7
113
177
6
38
162
@xieyihui
Yihui Xie
8 years
1-mo dreaming, 3-day hacking & finally I can create Rmd-based HTML slides that I truly love ❤️ Presentation Ninja ⚔
4
50
140
@xieyihui
Yihui Xie
8 years
Finally finished documenting the xaringan pkg for Rmd/remark.js-based slides w/ another weekend Now I can sleep well
Tweet media one
6
53
135
@xieyihui
Yihui Xie
8 years
Preparing the first CRAN release of bookdown. Pls help us test it as thoroughly as you can:
4
39
96
@xieyihui
Yihui Xie
8 years
Link to my slides of the htmlwidgets talk at #JSM2016 : Even I felt funny that only "make America great again" worked
1
25
91
@xieyihui
Yihui Xie
6 years
@sctyner @hadleywickham @tslumley @dataandme @alice_data Here it is: tidy_name = function(x) { x = tolower(substr(abbreviate(x), 1, 4)) paste(c(x, rep('r', 5 - nchar(x))), collapse = '') } tidy_name('Sam Tyner') # [1] "smtyr" tidy_name('Hadley') # [1] "hdlyr" tidy_name('Yihui Xie') # [1] "yihxr"
3
6
69
@xieyihui
Yihui Xie
9 years
Those at #rstatsnyc must have heard of bookdown now. Best time to write a book was 20 yrs ago; second best is now
1
26
65
@xieyihui
Yihui Xie
7 years
@_ColinFay @dataandme A quick knitr tip: when you use echo=FALSE and results="hide", you almost surely mean a single option include=FALSE (i.e. hide everything).
1
17
61
@xieyihui
Yihui Xie
6 years
@OilGains Yes, it definitely would be. Next project "notedown"? :)
7
0
59
@xieyihui
Yihui Xie
8 years
An online Shiny tutorial by @Dreamunter
0
15
54
@xieyihui
Yihui Xie
6 years
@asimumba_ Congratulations! You finally discovered one of the top secrets about the RStudio IDE: the whole thing is a web browser!
3
8
50
@xieyihui
Yihui Xie
9 years
So glad R 3.2.5 is released instead of 3.2.4-revised-final "revised" is always bad in naming
Tweet media one
0
40
48
@xieyihui
Yihui Xie
4 years
@jaredlander @baptnz See ?knitr::opts_template (although the syntax is not as succinct as bang-bang-bang). It was added in 2012:
Tweet media one
4
6
47
@xieyihui
Yihui Xie
8 years
Also added theorem and proof environments to bookdown: I think I'm ready to move to my next big project now.
@xieyihui
Yihui Xie
8 years
Improved math support in bookdown: You can cross-reference equations now. All your equations are belong to us!
3
24
74
2
14
43
@xieyihui
Yihui Xie
7 years
@sctyner @cpsievert @nature @NatureNews knitr::write_bib() writes out the bib entries of all packages loaded in the current R session by default (you can certainly add more if you like). You won't miss any citations next time, Sam.
0
9
42
@xieyihui
Yihui Xie
10 years
Slides of my #JSM2014 talk "Reproducible Research Is Dead, Long Live Reproducible Research!"
2
20
43
@xieyihui
Yihui Xie
6 years
@f2harrell I'm seriously interested in this idea. In fact, I have been thinking about the similar thing since 2012, and I believe the (software) infrastructure is mature enough now. I'm hoping to start experimenting with a certain existing journal next year (wish I had 48 hours a day).
4
1
43
@xieyihui
Yihui Xie
8 years
Protip: don't ride roller coaster at Harry Potter when you have a 2-hour tutorial to teach & two talks to give the next day at #rstudioconf
0
5
40
@xieyihui
Yihui Xie
6 years
@jafflerbach @AlexCEngler I noticed scrollama when it came out in 2017 and also thought for a few minutes about integrating it into R Markdown. Since two more people showed interest, I'll reconsider it this year!
7
0
39
@xieyihui
Yihui Xie
8 years
I'll give a talk on R Markdown (books/websites/slides/dashboards etc) at K-State U next Thursday Welcome to stop by
2
11
39
@xieyihui
Yihui Xie
8 years
GIF density of the #useR2016 bookdown talk will be 10/14 Enjoy! Good luck Tidy Wickham!
Tweet media one
1
16
36
@xieyihui
Yihui Xie
9 years
Went to @kwbroman 's minimal make tutorial for the N+1 time because I can never remember if it is $@, $<, or $^...
2
8
37
@xieyihui
Yihui Xie
10 years
If you upgraded to OS X Yosemite and have problems with LaTeX, RStudio, LyX, or any GUI apps that need PATH, see http://t.co/HfkYEJXnZS
2
27
35
@xieyihui
Yihui Xie
7 years
On my loooong flight to Melbourne Data Science Week: (1st time visiting Oz!) See u in 24 hrs! @visnut @robjhyndman
0
5
37
@xieyihui
Yihui Xie
3 years
@patilindrajeets Escape a normal space and you'll get a non-breaking space, i.e., "\ " gives you " " when the output is HTML, and "~" when the output is LaTeX. You only need to type two characters instead of the obscure six.
1
1
31
@xieyihui
Yihui Xie
6 years
@juliasilge I have wasted so many hours on the installation and configuration of rJava again and again (even though I don't use it myself) that I finally decided to completely give up. When checking my rev dependencies, I just ignore pkgs that depend on rJava.
3
4
30
@xieyihui
Yihui Xie
9 years
I heard someone behind me said like "they (the restaurant) are going to git stash us outside before they git commit us inside" #shinydevcon
1
11
30
@xieyihui
Yihui Xie
8 years
I used this GIF a few times before but it was not until I saw this Github issue that I felt I made good use of it.
1
3
31
@xieyihui
Yihui Xie
8 years
Back from vacation. First update.packages(ask=F), then warm up by merging pull requests. Feels good other ppl continue my work when I'm away
1
2
31
@xieyihui
Yihui Xie
9 years
Besides stringsAsFactors = HELLNO, we should also have options(warnPartialMatchDollar = HELLYES) #rstats
4
12
31
@xieyihui
Yihui Xie
10 years
Ladies and gentlemen, I've said this before: require() is the wrong way to load an R package; use library() instead #useR2014
7
32
29
@xieyihui
Yihui Xie
7 years
I'll give a talk on blogdown in the Dept of Stats @UNLincoln (49 Hardin Hall NW at 3pm on Sep 27th). Feel free to attend if you're nearby.
2
7
30
@xieyihui
Yihui Xie
8 years
Sometimes I feel the "programming" side of literate programming can be far more interesting than Knuth's orig idea
1
7
29
@xieyihui
Yihui Xie
8 years
It seems ifelse and ==TRUE are unnecessary (nitpicking @askdrstats ' #rstats code #JSM2016 )
Tweet media one
2
3
29
@xieyihui
Yihui Xie
8 years
When can we burn partial matching in R? Just bitten by this for the N+1 time 🔥🔥🔥 `$.list` really should be function(x, name) { x[[name]] }
1
6
30
@xieyihui
Yihui Xie
6 years
@_R_Foundation Wow, today I just learned that R core actually had a blog! That's great. Things are getting better and better! 👏
2
1
27
@xieyihui
Yihui Xie
9 years
Received 3 pull requests so far fixing my typos in bookdown () Copyeditors crowdsourced, nice
0
5
29
@xieyihui
Yihui Xie
7 years
@juliasilge @ma_salmon @jtleek Just spent two hours migrating Simply Stats and pretty much done now. I'll try to document the process next week:
1
4
27
@xieyihui
Yihui Xie
6 years
@apreshill @jafflerbach @AlexCEngler I can't resist sticker-driven development (especially when it is a llama looking at me). Chances are I'll start looking into it this afternoon!
4
0
29
@xieyihui
Yihui Xie
4 years
@apreshill @kanishkamisra @jannikbuhr This problem is so bad that I have to break my rule of only using Twitter on Wednesday---I just pushed a fix for it, and will truly appreciate it if you could try it out:
2
1
29
@xieyihui
Yihui Xie
8 years
@JennyBryan As a non-native English speaker, I often struggle with saying this word. That's why I changed my career to software engineer.
3
0
27
@xieyihui
Yihui Xie
8 years
#useR2016 Rmd tutorial attendees, pls buy @kwbroman @ijlyttle beers for me. Only 2 days' prep and a wonderful job!!
@kwbroman
Karl Broman
8 years
@xieyihui Tutorial went well. There were like 80-100 people, I think. Embarrassed about the unmentioned deps in my examples. 😳 @ijlyttle
2
0
6
1
1
25
@xieyihui
Yihui Xie
5 years
@polesasunder and you'll soon regret learning it... Partial matching is the one single thing I hate most about R. FYI If you end up hating it as much as I do, I have a simple helper function xfun::strict_list():
1
4
25
@xieyihui
Yihui Xie
8 years
Another moment when I thought I had to bite the bullet but turns out I don't have to: Yeah!
1
3
25
@xieyihui
Yihui Xie
8 years
The first time I have answered my own question on StackOverflow (not really a Q to me but just to share solution)
0
6
24
@xieyihui
Yihui Xie
8 years
"Authors: Chester Ismay, Albert Y. Kim and you?" Yes!! This (collaboration) is one of my greatest motivations of bookdown! @old_man_chester
Tweet media one
0
9
24
@xieyihui
Yihui Xie
4 years
@andrewheiss @jent103 @apreshill I added this tweet in a comment in blogdown and finally managed to remove it two years later: Please let me know if you still suffer from any blogdown problems with the current version: (more improvements to come in next version...)
2
4
24
@xieyihui
Yihui Xie
7 years
@nicoleradziwill For hackers, the knitr one; for average book authors, the bookdown one; for general R Markdown users, wait for my next book :)
3
1
22
@xieyihui
Yihui Xie
7 years
@BarkleyBG @o_guest @hadleywickham Creating a Markdown-based journal is one of my life goals. I think I'm getting close to start fulfilling my dream.
2
3
22
@xieyihui
Yihui Xie
7 years
@_ColinFay @JennyBryan I must be too old now and my memory has become so poor. I seem to misremember that the letter C in CRAN stands for "Comprehensive"...
1
2
21
@xieyihui
Yihui Xie
7 years
@lorenzwalthert There are certainly some objects hidden behind the scenes, so you have to rm(list = ls(all = TRUE)).
0
5
22
@xieyihui
Yihui Xie
8 years
We cannot be friends if you don't use UTF8 Cannot stand this 3-yr old yaml bug any more. Pull sword or pull request?
0
6
22
@xieyihui
Yihui Xie
3 years
@f2harrell @kwbroman @IsabellaGhement @VUDataScience You need to call rmarkdown::render('test.Rmd'), instead of doing the 2-step knitr::knit('test.Rmd') + rmarkdown::render(''). knitr::knit() doesn't know the target output format will be HTML, so takes screenshots of plotly.
1
0
21
@xieyihui
Yihui Xie
5 years
@statsgen @TremblayTalks @rstudio Yes, the talk will be recorded and the video should be available a few days later. @DahShuInfo is the host and will post the video once it is ready (presumably on Youtube).
2
2
20
@xieyihui
Yihui Xie
8 years
In future we should organize a session on historical ideas on stat graphics. Always fascinated by scenes like this
Tweet media one
1
5
21
@xieyihui
Yihui Xie
6 years
@leonawicz @rstudio Thanks! If there are any topics that you are particularly interested in, please feel free to let me know. The hardest part of giving talks or tutorials is to guess what exactly the audience wants to learn.
1
1
18
@xieyihui
Yihui Xie
8 years
The best GIF was on page 9 and unfortunately it was not loaded during the #useR2016 talk :( Anyway, great karaoke!
@hadleywickham
Hadley Wickham
8 years
Bookdown slides by @xieyihui : . Great way to write books #rstats ! #user2016
0
31
90
0
1
19
@xieyihui
Yihui Xie
8 years
[Pandoc] is only available for a very limited range of platforms... Read "Solaris For the Win!" hard-to-satisfy hehe
2
4
20
@xieyihui
Yihui Xie
8 years
@_inundata @kwbroman This has finally become a real thing 😂
1
0
20
@xieyihui
Yihui Xie
5 years
@Atsushi776 To my knowledge, you are the first person who has discovered the most essential technical (dirty) hack in the xaringan source code and mentioned it in public. You are an overqualified ninja now.
1
0
18
@xieyihui
Yihui Xie
8 years
Just about to write a func to convert integers to Roman numerals 😩 Typed as.ro in RStudio, and auto-completion says no need to waste time 😂
1
4
20
@xieyihui
Yihui Xie
5 years
@andrewheiss @nickchk To Nick: use latex_fragment as the output format, instead of pdf_document. Then you get the body of the LaTeX output document (which you can \input{} into other .tex documents), not the full LaTeX document. To Andrew: to use biblatex, pdf_document: citation_package: biblatex
3
0
18
@xieyihui
Yihui Xie
6 years
@LeafyEricScott I have a Shiny app for the conversion (between YAML/TOML/JSON): If you don't want to run it locally, I have an online version:
1
9
18
@xieyihui
Yihui Xie
6 years
@SuzanBaert I have to confess that I didn't know background images could be "vectorized" in CSS. So thanks a lot for sharing the trick!
1
2
19
@xieyihui
Yihui Xie
10 years
Prof rejected my package because 'Markdown' was not single-quoted in Title/Description. Speechless.
6
3
19
@xieyihui
Yihui Xie
9 years
That moment when you try to copy & paste other people's R code but have to get rid of "> "... http://t.co/quLT9VlRFt
2
3
18
@xieyihui
Yihui Xie
10 years
I just heard from a friend that the renowned professor complained "It's" must be "It is" in his email to CRAN. #TheSkyIsBDRsLimit
4
4
18
@xieyihui
Yihui Xie
8 years
Two ugly single quotes took me about two hours to debug & create an 18 lines minimal example from a 5237 lines .tex
0
6
18
@xieyihui
Yihui Xie
8 years
Many LaTeX packages are useful, but most docs look like this \backslashes \everywhere \and \no \single \example!
1
3
18
@xieyihui
Yihui Xie
10 years
bug report! this doesn't work! library(dplyr); huge_crowd %>% poster_hallway #useR2014
1
6
17
@xieyihui
Yihui Xie
4 years
@rmflight @djnavarro @sharlagelfand Right. I'm sure I can find a few of my git commits that remove the leftover `print()` or `cat()` commands during debugging. I use them all the time. When they are suppressed for some reason (e.g. by R CMD check), I use writeLines(capture.output(object), "~/Downloads/debug.txt").
0
0
18
@xieyihui
Yihui Xie
6 years
@RichBonneauNYU Hard work on science? No question asked. Hard work on formatting a paper for a specific journal or institution? Probably not worth the effort for all authors. Problem is, currently the format is often a blocking issue (i.e. you can't publish without formatting).
0
0
17
@xieyihui
Yihui Xie
10 years
I guess I'll avoid institutions in the future that require me to prepare nine forms to get reimbursed after they invite me to do talks.
4
1
17
@xieyihui
Yihui Xie
6 years
@S_Owla @UUnconf @cpsievert @iqis_gnahz I only read Twitter on Wednesday afternoons, so I didn't see this tweet yesterday. This is the first time that a package has been announced when I wrote its first line of code only about 25 hours ago! Please use with caution. Even the package name may change in the future :)
1
1
17
@xieyihui
Yihui Xie
7 years
@sctyner @Wikipedia That is because of the 'alt' attribute of <img>. It is a massively (or the most?) undervalued attribute in HTML. Not many people realize its importance (esp important for blind people).
0
1
18
@xieyihui
Yihui Xie
6 years
@archidisign Not sure if I'd count as "successful", but successful people are often symbolized, while they are still humans anyway. I believe the vast majority of humans have inner demons. Successful people just dare to look at them, and kill or accept them. Other people deny or run away.
2
0
17
@xieyihui
Yihui Xie
9 years
@simplystats Jekyll is good, but not cool. You should have waited for me to work on a new blog engine based on R Markdown.
1
3
16
@xieyihui
Yihui Xie
4 years
@jaredlander @cpsievert I can never understand why a non-standard link is so much more important than our years of hard work (e.g. thousands of lines of code) that a link alone can get a whole package rejected (not to mention that I disagree that HTTP status codes other than 200 are wrong and must die).
2
1
17
@xieyihui
Yihui Xie
9 years
@kwbroman @drob I don't always answer knitr questions if you ask me directly but @JennyBryan is on my whitelist. Use knitr::knit_exit().
2
6
16
@xieyihui
Yihui Xie
7 years
@imtaraas @dataandme @BecomingDataSci @kierisi Why not blogdown? Someday you will be able to build blogdown posts to books: Most web platforms are not good for technical writing (Medium, WordPress, ...).
1
1
15
@xieyihui
Yihui Xie
5 years
@nj_tierney @statsgen @DeadTreeDude @Dale_Masch @dirk_sch knitr::write_bib() writes out the bib entries for all packages loaded in the current R session by default: e.g., you can knitr::write_bib(file = 'R-packages.bib') in your last code chunk in Rmd.
1
5
16