Skip to content

Commit b41f130

Browse files
committed
add namespace to call
1 parent bec750e commit b41f130

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

R/new-blog-post.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#' Create a new blog post
22
#'
3+
#' Creates (and potentially opens) the `index.qmd` file for a new blog post.
4+
#'
35
#' @param title A character string for the title of the post. It is converted
46
#' to title case via [tools::toTitleCase()].
57
#' @param dest A character string (or NULL) for the path within `posts`. By
@@ -30,7 +32,7 @@ new_blog_post <- function(title, dest = NULL, open = rlang::is_interactive(),
3032
post_yaml <- make_post_yaml(title, ...)
3133
qmd_path <- write_post_yaml(post_yaml, dest_path, call)
3234
if (open) {
33-
file.edit(qmd_path)
35+
utils::file.edit(qmd_path)
3436
}
3537
invisible(qmd_path)
3638
}

man/new_blog_post.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)