create_new_article: Create a new article locally

Description Usage Arguments Details Value See Also Examples

View source: R/create_new_article.R

Description

Make a new file with boilerplate YAML for posting to dev.to

Usage

1
2
3
4
5
6
7
create_new_article(
  title,
  description = "a description",
  series = "a series",
  tags = "[\"tag1\", \"tag2\"]",
  file = ""
)

Arguments

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

DETAILS

Value

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.

See Also

glue

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){
 create_new_article(title = "my title")
 }

## End(Not run)

DaveParr/dev.to.ol documentation built on Aug. 8, 2020, 4:31 p.m.