We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94f1229 commit 6327e8cCopy full SHA for 6327e8c
R/blog.R
@@ -44,9 +44,10 @@ new_blog_post <- function(
44
if (open) {
45
edit_file <- utils::file.edit
46
if (
47
- rlang::is_installed("usethis") && rlang::is_callable(usethis::edit_file)
+ rlang::is_installed("usethis") &&
48
+ is.function(asNamespace("usethis")$edit_file)
49
) {
- edit_file <- getFromNamespace("edit_file", "usethis")
50
+ edit_file <- utils::getFromNamespace("edit_file", "usethis")
51
}
52
edit_file(qmd_path)
53
0 commit comments