Skip to content

Commit 625934a

Browse files
committed
feat: add more context
1 parent 1fd9f81 commit 625934a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

R/find_missing_ns.R

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ is_ns <- function(text) {
55

66
#' @noRd
77
is_shiny_input_output_funmodule <- function(
8-
text,
9-
extend_input_output_funmodule = NA_character_) {
8+
text,
9+
extend_input_output_funmodule = NA_character_) {
1010
stopifnot(is.character(extend_input_output_funmodule))
1111

1212
input_output_knew <- c("Input|Output|actionButton|radioButtons")
@@ -62,8 +62,8 @@ fix_ns_in_data <- function(data) {
6262
#' @noRd
6363
#' @importFrom utils getParseData
6464
check_namespace_in_file <- function(
65-
path,
66-
extend_input_output_funmodule = NA_character_) {
65+
path,
66+
extend_input_output_funmodule = NA_character_) {
6767
getParseData(
6868
parse(
6969
file = path,
@@ -115,9 +115,9 @@ check_namespace_in_file <- function(
115115
#'
116116
#' @export
117117
check_namespace_sanity <- function(
118-
pkg = golem::get_golem_wd(),
119-
extend_input_output_funmodule = NA_character_,
120-
auto_fix = TRUE) {
118+
pkg = golem::get_golem_wd(),
119+
extend_input_output_funmodule = NA_character_,
120+
auto_fix = TRUE) {
121121
check_desc_installed()
122122
check_cli_installed()
123123

@@ -195,7 +195,9 @@ check_namespace_sanity <- function(
195195

196196

197197
if (isTRUE(auto_fix)) {
198+
cli::cli_process_start("`auto_fix` is TRUE so we will fix the missing namespace")
198199
fix_ns_in_data(data = data)
200+
cli::cli_process_done()
199201
} else {
200202
return(invisible(FALSE))
201203
}

0 commit comments

Comments
 (0)