tag_post: Tag a post

Description Usage Arguments Value See Also Examples

Description

tag_post tags a post

Usage

1
tag_post(post, tags, append = TRUE)

Arguments

post

path to the post

tags

character vector of tags to apply

append

logical value; add to existing tags (or replace)?

Value

The tags file in the directory post is created if it does not already exist, and populated with the items in tags.

See Also

new_post, render_post, remove_post

Examples

1
2
new_post("Hello, world!", "hello-world")
tag_post(post_dir(Sys.Date(), "hello-world"), c("greetings", "salutations"))

dnegrey/blogr documentation built on May 15, 2019, 9:38 a.m.