@@ -5,8 +5,8 @@ is_ns <- function(text) {
5
5
6
6
# ' @noRd
7
7
is_shiny_input_output_funmodule <- function (
8
- text ,
9
- extend_input_output_funmodule = NA_character_ ) {
8
+ text ,
9
+ extend_input_output_funmodule = NA_character_ ) {
10
10
stopifnot(is.character(extend_input_output_funmodule ))
11
11
12
12
input_output_knew <- c(" Input|Output|actionButton|radioButtons" )
@@ -62,8 +62,8 @@ fix_ns_in_data <- function(data) {
62
62
# ' @noRd
63
63
# ' @importFrom utils getParseData
64
64
check_namespace_in_file <- function (
65
- path ,
66
- extend_input_output_funmodule = NA_character_ ) {
65
+ path ,
66
+ extend_input_output_funmodule = NA_character_ ) {
67
67
getParseData(
68
68
parse(
69
69
file = path ,
@@ -115,9 +115,9 @@ check_namespace_in_file <- function(
115
115
# '
116
116
# ' @export
117
117
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 ) {
121
121
check_desc_installed()
122
122
check_cli_installed()
123
123
@@ -195,7 +195,9 @@ check_namespace_sanity <- function(
195
195
196
196
197
197
if (isTRUE(auto_fix )) {
198
+ cli :: cli_process_start(" `auto_fix` is TRUE so we will fix the missing namespace" )
198
199
fix_ns_in_data(data = data )
200
+ cli :: cli_process_done()
199
201
} else {
200
202
return (invisible (FALSE ))
201
203
}
0 commit comments