@@ -20,8 +20,10 @@ create_config = function(file, pkg_name) {
2020 type = match.arg(type )
2121 yaml_file = file.path(dir , file )
2222 if (type == " error" && file.exists(yaml_file )) {
23- cli :: cli_abort(" Config file already exists.
24- Either delete or change the `type` argument." )
23+ cli :: cli_abort(
24+ " Config file already exists.
25+ Either delete or change the `type` argument."
26+ )
2527 }
2628
2729 new_config = create_config_list(dir , file , default , pkg_name )
@@ -49,8 +51,10 @@ get_check_info = function(dir, file, pkg_name) {
4951 purrr :: map_dfr(r6_inits , function (r6 ) c(" class" = class(r6 )[1 ], r6 $ info()))
5052 } else {
5153 tibble :: tibble(
52- class = character (0 ), group = character (0 ),
53- short = character (0 ), context = character (0 ),
54+ class = character (0 ),
55+ group = character (0 ),
56+ short = character (0 ),
57+ context = character (0 ),
5458 long = character (0 )
5559 )
5660 }
@@ -63,9 +67,7 @@ merge_configs = function(new, existing) {
6367 new [[v ]] = merge_configs(new [[v ]], existing [[v ]])
6468 # Ensure that existing list is the same "type"
6569 # If not, new gets precedent
66- } else if (v %in% xnames &&
67- ! is.null(existing [[v ]]) &&
68- ! is.list(existing [[v ]])) {
70+ } else if (v %in% xnames && ! is.null(existing [[v ]]) && ! is.list(existing [[v ]])) {
6971 new [[v ]] = existing [[v ]]
7072 }
7173 }
0 commit comments