blogdown

Create Blogs and Websites with R Markdown

Github星跟蹤圖

blogdown

Build Status
Coverage status
Downloads from the RStudio CRAN mirror

An open-source (GPL-3) R package to generate static websites based on R Markdown and Hugo. You can install the package via CRAN or GitHub:

## Install from CRAN
install.packages('blogdown')

## Or, install from GitHub
remotes::install_github('rstudio/blogdown')

You may create a new site via the function blogdown::new_site() under an empty directory. It will create a skeleton site, download a Hugo theme from Github, add some sample content, launch a web browser and you will see the new site. The sample blog post hello-world.Rmd should be opened automatically, and you can edit it. The website will be automatically rebuilt and the page will be refreshed after you save the file.

If you use RStudio, you can create a new RStudio project for your website from the menu File -> New Project -> New Directory -> Website using blogdown.

The function blogdown::serve_site() may be the most frequently used function in this package. It builds the website, loads it into your web browser, and automatically refreshes the browser when you update the Markdown or R Markdown files. Do not use the command line hugo server to build or serve the site. It only understands plain Markdown files, and cannot build R Markdown.

You may not be satisfied with the default site created from new_site(). There are two things you may want to do after your first successful experiment with blogdown:

  1. Pick a Hugo theme that you like from http://themes.gohugo.io. All you need is its Github user and repository name, to be passed to the theme argument of new_site().
  2. Add more content (pages or posts), or migrate your existing website.

The full documentation is the blogdown book freely available at https://bookdown.org/yihui/blogdown/. You are expected to read at least the first chapter.
You are welcome to send us feedback using Github issues or ask questions on StackOverflow with the blogdown tag.

主要指標

概覽
名稱與所有者rstudio/blogdown
主編程語言R
編程語言R (語言數: 3)
平台
許可證
所有者活动
創建於2016-11-02 18:57:35
推送於2025-04-04 02:27:57
最后一次提交
發布數43
最新版本名稱v1.21 (發布於 )
第一版名稱v0.1 (發布於 )
用户参与
星數1.8k
關注者數70
派生數332
提交數1.5k
已啟用問題?
問題數607
打開的問題數24
拉請求數135
打開的拉請求數5
關閉的拉請求數24
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?