Skip to content

Commit cc2adcf

Browse files
author
‘topepo’
committed
conditionally use whoami
1 parent a229171 commit cc2adcf

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ Imports:
2727
rstudioapi,
2828
tools,
2929
utils,
30-
whoami,
3130
yaml
3231
Suggests:
3332
curl,
3433
knitr,
3534
rsconnect (>= 0.8.26),
3635
testthat (>= 3.1.7),
3736
withr,
37+
whoami,
3838
xfun
3939
VignetteBuilder:
4040
quarto

R/new-blog-post.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#'
2424
new_blog_post <- function(title, dest = NULL, open = rlang::is_interactive(),
2525
call = rlang::current_env(), ...) {
26+
rlang::check_installed("whoami")
2627

2728
if (is.null(dest)) {
2829
# Scrub title to make directory name

tests/testthat/test-new-blog-post.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
test_that("Create a blog post", {
22
skip_if_no_quarto("1.4")
3+
skip_if_not_installed("whoami")
34

45
current_dir <- getwd()
56

0 commit comments

Comments
 (0)