r-markdown - 通过 `blogdown` 生成`bookdown site`
问题描述
我的问题是了解是否可以使用 blogdown 生成 bookdown 书。
在阅读https://bookdown.org/yihui/blogdown/并查看https://github.com/rstudio/bookdown/tree/master/inst/examples/Makefile时,似乎一切都建立在:
cmd = sprintf("bookdown::render_book('index.Rmd', '%s', quiet = %s)", fmt, quiet)
res = bookdown:::Rscript(c('-e', shQuote(cmd)))
其中的代码似乎在R/render.R
看代码,好像生成了一本书,可以在 RStudio IDE 中查看,也可以通过https://bookdown.org/yihui/bookdown/github.html用作静态站点
不清楚的是,是否有办法blogdown
对hugo
. 好像https://github.com/yihui/hugo-lithium没有这个能力。所以我猜想blogdown
在这一点上通过生成 bookdown 书是不可行的。
解决方案
推荐阅读
- powershell - 从文本文件中的多个 URL 调用 RestMethod
- javascript - 对于大型播放列表,YouTube 播放器 API 调用 onReady 还为时过早
- angular - 调用 Angular Web 组件方法 (CustomElement)
- reactjs - React Navigation 4.x 到 React Navigation 5.x
- regex - pdfgrep 模式包含/排除换行符
- python - 动手机器学习代码不适用于 Jupyter,但适用于 Google。为什么?
- javascript - 在 R Shiny 中观察另一个事件时控制嵌入的 YouTube 视频
- asp.net-web-api - 在请求正文中传递 Odata 查询选项
- php - 学说锁表
- javascript - 定义元素之前的控制台输出错误Javascript