Yihui Xie
yihui.org
Yihui Xie
@yihui.org
With knitr/rmarkdown, you can also include other chunks in one chunk: bookdown.org/yihui/rmarkd... Unless I misread Knuth's paper when I was a graduate student, I think knitr had implemented what he mentioned.
August 18, 2025 at 3:41 PM
Unfortunately or maybe fortunately, it's no longer actively maintained because there isn't much to maintain anymore. Pin the Hugo version, and then it's stable as rock :)
August 15, 2025 at 9:11 PM
I wonder if this new $600 iPhone would last another 10 years. I'm not optimistic about it... I hate that things are so tightly tied to phones, and phone apps become the only way out.
May 20, 2025 at 2:10 PM
Finally I had to let go my 10-year-old iPhone 6 last week because I must install MS Authenticator. Basically my old iPhone couldn't install any app due to its age, which had been fine to me because I use only one app primarily until last week when certain IT department started requiring this MS app.
May 20, 2025 at 2:07 PM
And using cbind() in a loop to keep adding columns is also very inefficient (because R has to keep making new copies of `price` in the loop). You should retrieve all of the 6th columns and make the `price` data frame at the end in one go.
April 27, 2025 at 4:48 PM
eval(parse()) is neither secure nor robust. If you know variable names, you should get()/mget() them, e.g.,

mget(nasdaq100_symbols) |>
lapply(`[`, 6) |>
as.data.frame()

However, when you have to use mget() to process data, you may have to rethink your data structure: yihui.org/en/2023/04/g...
April 27, 2025 at 4:44 PM
To me, closing/deleting posts without knowing what the posts really mean is most annoying problem of StackOverflow (yihui.org/en/2018/02/c...). Time and time again, they just try to destroy valid posts. This time, none of Mark Rotteveel, gnat, Wai Ha Lee, and ChrisMM seem to have expertise in R.
April 14, 2025 at 7:12 PM
This poor Nebraskan is watching every social media platform...
April 2, 2025 at 6:03 PM
Great memory. Yes, I was the culprit :) It's been 12 years: stat.ethz.ch/pipermail/r-...
March 6, 2025 at 2:27 PM
If this is only intended for the profiling purpose, I think the litedown solution is much simpler than the knitr hook:

1. litedown::reactor(time = TRUE); litedown::roam() # navigate to vignettes/
2. Add

```{r}
litedown::timing_data()
```

to the end of each Rmd file, and preview them.
March 5, 2025 at 11:20 PM
Hi Michael, I quoted this as the epigraph of this chapter: yihui.org/litedown/#ch... Please let me know if you prefer not to be quoted, and I'll be happy to remove it. Thanks!
litedown: R Markdown Reimagined
yihui.org
December 8, 2024 at 1:15 AM
The chunk option verbose = 2 in litedown does what you want, and I've finally finished documenting it: yihui.org/litedown/#se...
litedown: R Markdown Reimagined
yihui.org
December 8, 2024 at 1:12 AM
I've thought about this problem many times in the past, and have also come up with a simple solution early this year (no need to repeat the object name after the assignment or use a special pipe or explicit print()). I just need to find time to document it (among many other things in litedown)...
November 18, 2024 at 11:25 PM
You might be interested in litedown (my current best effort in making things lightweight), and if you don't need executable code, you can just write plain .md posts instead of .Rmd (of course, math and bibliography are supported for .md, too).
November 18, 2024 at 9:16 PM
With great power comes a great number of Github issues.
November 13, 2024 at 10:31 PM
The wisdom is, always remember the goal is get the writing done, instead of learning what's new/cool/possible in tools for writing, which is tempting (& easier than writing) but bottomless. If LaTeX + Rnw can get the job done, there's nothing wrong of using them, even if they sound "old-fashioned".
November 12, 2024 at 5:49 PM
I've become one of the tired horses in recent years and can't tell if the complexity of Markdown is still far below LaTeX as claimed originally. When I created knitr, I felt there would be no reason for anyone to use Sweave anymore. Now (13 years later), I see wisdom in people who still use Sweave.
November 12, 2024 at 5:48 PM