etiennebacher / personal_website_distill

Personal website made with distill. Replacement of personal_website (made with blogdown)
https://etiennebacher.com
9 stars 1 forks source link

Etienne Bacher: Use GitHub actions with R Markdown and Distill #4

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Etienne Bacher: Use GitHub actions with R Markdown and Distill

https://www.etiennebacher.com/posts/2021-03-19-use-github-actions-with-r-markdown-and-distill/

vgherard commented 3 years ago

Neat, thanks!

I was trying to do the same, but for a single distill article, but I'm a bit puzzled about what would be the right command in this case. rmarkdown::render("article.Rmd", output_dir = "docs") does not seem to be completely equivalent to pressing Knit in RStudio, and (ugh!) I can't find out what R commands does the latter button call. Any idea on this?

Cheers, Valerio

etiennebacher commented 3 years ago

How do you know that rmarkdown::render("article.Rmd", output_dir = "docs") is not the same as pressing "Knit"? Is there a difference in the output?

Also, when I press "Knit", the command that is actually run is displayed at the top of the "R Markdown" tab (next to the "Console" tab) so you can check the equivalent R command of "Knit".

Cheers, Etienne