Import a post from an external source (e.g. GitHub repo, RPubs article, etc.).
import_post(url, slug = "auto", date = Sys.Date(),
date_prefix = TRUE, check_license = TRUE, overwrite = FALSE,
view = interactive())update_post(slug, view = interactive())
URL for post to import
Post slug (directory name). Automatically computed from title if not provided.
Post date (defaults to current date)
Data prefix for post slug (preserves chronological order for posts within the filesystem).
Verify that the imported posted has a creative commons license
Overwrite existing post? (defaults to FALSE
, use update_post()
to update an existing post in-place).
View the post after importing it.
Returns (invisibly) a logical indicating whether the operation completed (it may not complete if, for example, the user chose not to import an article that lacked a creative commons license).