powered by
Create a new blog post
create_post( title, collection = "posts", author = "auto", slug = "auto", date = Sys.Date(), date_prefix = date, draft = FALSE, edit = interactive() )
Post title
Collection to create the post within (defaults to "posts")
Post author. Automatically drawn from previous post if not provided.
Post slug (directory name). Automatically computed from title if not provided.
Post date (defaults to current date)
Date prefix for post slug (preserves chronological order for posts within the filesystem). Pass NULL for no date prefix.
NULL
Mark the post as a draft (don't include it in the article listing).
draft
Open the post in an editor after creating it.
if (FALSE) { library(distill) create_post("My Post") }
Run the code above in your browser using DataLab