Description Usage Arguments Note Examples
Create a new blog post
1 2 | create_post(title, author = "auto", slug = "auto",
date_prefix = TRUE, draft = FALSE, edit = interactive())
|
title |
Post title |
author |
Post author. Automatically drawn from previous post if not provided. |
slug |
Post slug (directory name). Automatically computed from title if not provided. |
date_prefix |
Data prefix for post slug (preserves chronological order for posts within the filesystem). |
draft |
Mark the post as a |
edit |
Open the post in an editor after creating it. |
This function must be called from with a working directory that is within a Radix website.
1 2 3 4 5 | ## Not run:
library(radix)
create_post("My Post")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.