Twitter | Search | |
This is the legacy version of twitter.com. We will be shutting it down on 15 December 2020. Please switch to a supported browser or device. You can see a list of supported browsers in our Help Center.
Yihui Xie
. I only read Twitter on Wednesday. Normally I don't answer questions here. I read Stack Overflow questions daily.
2,340
Tweets
55
Following
23,064
Followers
Tweets
Yihui Xie Nov 5
Personally I don't like the fact that here::here() returns absolute paths. I'm all for relative paths. I have experimental functions xfun::from_root() and xfun::magic_path() that return relative paths. If you find them helpful, please just keep them to yourself.
Reply Retweet Like
Yihui Xie Nov 5
I prefer not to discuss the path issue on Twitter since people often have strong opinions. I definitely understand the pain, but I don't think we'll ever reach a consensus on the question "relative to what?"
Reply Retweet Like
Yihui Xie Nov 5
FYI the vast majority of problems that hugodown tried to solve have been solved in the current dev version of blogdown. I'll appreciate it if you could try remotes::install_github('rstudio/blogdown') and let me know if anything still bites you. Thanks!
Reply Retweet Like
Yihui Xie Nov 5
Replying to @coolbutuseless
BTW, my general philosophy in software design is to leave a way to the other option: When I make a change, you are usually given a way to go back to the previous behavior. I'd truly appreciate it if you could read the release notes in NEWS. Thank you!
Reply Retweet Like
Yihui Xie Nov 5
Replying to @coolbutuseless
I strongly recommend *not* to change the project type to "None" in RStudio, as that will change the behavior of the Knit button (Knit will no longer work).
Reply Retweet Like
Yihui Xie Nov 5
Replying to @coolbutuseless
Yes, it was mentioned in NEWS and you may set that option to disable the behavior. Sorry about the trouble. FWIW, if you use the current dev version of blogdown (to be released soon), this behavior has been disabled by default.
Reply Retweet Like
Yihui Xie Nov 4
I go with LAY-tex, but I don't think it matters. I hear people say LA-tex frequently. BTW, none of the authors of this book have received the book yet, so we definitely feel jealousy! :)
Reply Retweet Like
Yihui Xie Oct 30
Replying to @RyanStraight
I just pushed a possible fix to this problem. You may try remotes::install_github('rstudio/blogdown') and let me know if it works. Thanks! BTW, in the future, please feel free to file an issue to if you run into problems like this.
Reply Retweet Like
Yihui Xie Oct 29
Replying to @dbrby @dsquintana
May I ask what your routine issues were? Thanks! And FYI, blogdown v0.21 and 0.22 (unreleased) have a lot of updates, and some of your issues might have been resolved:
Reply Retweet Like
Yihui Xie Oct 20
Replying to @PieRatio
As I said to someone else recently (), it's often hard to debug problems on Twitter. I'll appreciate it if you could file a Github issue with a reproducible example. I just tested leaflet myself against the dev version of blogdown, and it worked fine.
Reply Retweet Like
Yihui Xie Oct 18
Replying to @chrismainey @apreshill
I just pushed a possible fix that might be relevant to your problem. Please see if remotes::install_github('rstudio/blogdown') works. If not, feel free to file an issue. Thank you!
Reply Retweet Like
Yihui Xie Oct 18
Replying to @chrismainey @apreshill
Thanks! If you open a Github issue, the issue guide will tell you how to check if it is a known bug that has already been fixed. Tweets often contain too little information to tell anything and I'll be likely to have to ask the same questions written the issue guide on Twitter.
Reply Retweet Like
Yihui Xie Oct 17
Replying to @chrismainey @apreshill
There's too little information in a tweet. Could you file an issue to Github? Thanks!
Reply Retweet Like
Yihui Xie Oct 14
Anyway, with the original 3 "don't"s in this twitter thread are no longer necessary: 1. You can't (easily) touch index.Rmd; 2. There is no public/ directory any more by default (you don't even need to know what that means); 3. Just Knit It! (TM)
Reply Retweet Like
Yihui Xie Oct 14
Not perfect yet since the latest CRAN version still has some major pain points that haven't been removed (in particular, the Hugo version problem). Some have been addressed in the dev version on Github, though.
Reply Retweet Like
Yihui Xie Oct 14
Reply Retweet Like
Yihui Xie Oct 14
Or perhaps provide an alias: blogdown::build_site(build_rmd = "timestamp") Let me know if you like these ideas. I can implement them in a minute.
Reply Retweet Like
Yihui Xie Oct 14
The code feels involved. Perhaps I should just support this: blogdown::build_site(build_rmd = blogdown::timestamp_filter)
Reply Retweet Like
Yihui Xie Oct 14
Actually I hadn't thought about your case explicitly for this release, but I guess this would work for you: options(blogdown.files_filter = blogdown::timestamp_filter) blogdown::build_site(build_rmd = TRUE)
Reply Retweet Like
Yihui Xie Oct 14
Yes, you can. It's similar to how you reference R code. Put Markdown chunks in a file, e.g., ref.txt, label them, knitr::read_chunk('ref.txt'), and use them with ```{asis, your-markdown-label}. More about the asis engine:
Reply Retweet Like