Description Usage Arguments Details Value See Also Examples
View source: R/create_new_article.R
Make a new file with boilerplate YAML for posting to dev.to
1 2 3 4 5 6 7 | create_new_article(
title,
description = "a description",
series = "a series",
tags = "[\"tag1\", \"tag2\"]",
file = ""
)
|
title |
string of the title |
description |
string describing the article, Default: 'a description' |
series |
string of the series, Default: 'a series' |
tags |
string of the YAML array of tags, Default: '['tag1', 'tag2']' |
file |
path of the file to create, should be a "*.Rmd", Default: ” |
DETAILS
By default the yaml boilerplate to the command line. If a file path is included it will create that file. Descriptions do not currently appear to be used in the UI, but are used by integrations, like stackbit.
1 2 3 4 5 6 | ## Not run:
if(interactive()){
create_new_article(title = "my title")
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.