Very cute! This reminds me of my useR! 2014 talk at UCLA, in which I also showed Gromit (as a "knitter") in the beginning :) github.com/yihui/knitr-...
Yihui Xie
@yihui.org
Thanks! I'm aware of that, but I used gh-pages deliberately so I can check diffs between builds. The size hasn't bothered me yet since I rarely pull this branch. If it becomes a problem one day, I can force push and delete older commits.
Oh, his only open issue is about "out of office": github.com/ropensci/tar... which will be closed on Sept 30th! I'll try to close mine on 29th!!
After a massive cleanup of knitr issues/PRs in the past few days, I can finally stop being jealousy of Will Landau for his zero open Github issues in {targets}: yihui.org/en/2026/09/k... For the record, he has one open issue at the moment and so do I (debating with myself whether I should close it).
Yes, you can use it in Quarto, R Markdown, Shiny, litedown, and Jupyter.
working on R Markdown and knitr in 2026...
I'm very glad that the dev version of knitr helps! Actually the new version just landed on CRAN this morning :)
Oh I didn't know arf allows this. Just tried it and you are completely right---I'm able to go back to the beginning of the expression even if I'm on a continuation line. Thanks for the tip! Good job, @eitsupi.bsky.social! You've got a new sponsor on Github now :)
I battled with the dark side of me for days on whether I should support .Last.value in knitr/litedown. Some may feel relieved that the dark side didn't win.
That's very cool. By "Sweave/knitr inserts R output", I'm curious if you have some Typst magic (extension) to call Sweave/knitr inside Typst, or you are using the minimal .Rtyp support in knitr?
To clarify, all consoles/terminals do allow scrolling; problem is that when you're on the 2nd line: > data |> + f() # press up arrow from here and scroll up, it'd become: > data |> + data |> which won't work. There's no way to do "give me all previous lines and I wanna start over" in console
When I finished typing f() and realized I needed to assign this to a variable, I'd have to do: > data |> + f() -> x Or just run the code and then x = .Last.value
Most of time I also write code in editor instead of console. Sometimes I just type some quick code that's not meant to be saved so I type in the console. I wonder which console allows you to scroll up when you are in the middle of an expression? > data |> + f() # can't scroll up here anymore
I rarely use <- (sorry I'm a team "=" member), but I have used -> several times over the years when I typed some long multiline code in the R console and realized I needed to assign the whole thing to a variable, and it was too late to go back to the beginning to type x <- ... but ... -> x is handy.
I just came back from summer vacation, and would like to announce a tiny new R package I developed recently: {lt} yihui.org/en/2026/07/l...
