Skip to content

Commit

Permalink
improve messages
Browse files Browse the repository at this point in the history
  • Loading branch information
estedeahora committed Apr 25, 2024
1 parent d2df849 commit 16a5ee7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ importFrom(cli,cli_process_done)
importFrom(cli,cli_process_start)
importFrom(cli,col_blue)
importFrom(cli,col_green)
importFrom(cli,col_grey)
importFrom(cli,col_red)
importFrom(cli,col_yellow)
importFrom(utils,file.edit)
Expand Down
4 changes: 2 additions & 2 deletions R/GURI_make_journal.R
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ guri_make_journal <- function(journal = NULL, repository = FALSE,
if(example){

# COPY: 'example' files
cli_process_start("Copy example journal issue ({.path ./example/num1/}).")
cli_process_start("Copy example journal issue ('./example/num1/')")
file.copy(from = file.path(use_folder, "num1"),
to = journal_folder, recursive = T,
overwrite = T)
cli_process_done()
cli_process_done(msg_done = paste0(col_grey("Copy example journal issue ('./example/num1/')"), " ... done"))

# TODO: Agregar función correcta
ui_alert_info("To generate the output files for this 'example' journal run:\n",
Expand Down
1 change: 1 addition & 0 deletions R/guri-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#' @importFrom cli cli_process_start
#' @importFrom cli col_blue
#' @importFrom cli col_green
#' @importFrom cli col_grey
#' @importFrom cli col_red
#' @importFrom cli col_yellow
#' @importFrom utils file.edit
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ui_alert_warning <- function(..., sep = ""){

ui_alert_success <- function(..., sep = ""){ # , color = "grey50"
# cli_div(theme = list (.alert = list(color = color)))
cli::cli_alert_success(cli::col_grey(paste(..., sep = sep)))
cli::cli_alert_success(col_grey(paste(..., sep = sep)))
# cli_end()
}

Expand Down

0 comments on commit 16a5ee7

Please sign in to comment.