2525# #' \item{missing}{List of missing fields by category (mandatory, recommended, optional)}
2626# #' \item{updated}{The updated metadata list (if changes were made)}
2727# #' }
28- # #' @author Daniel Nüst
28+ # #' @author Daniel Nuest
2929# #' @importFrom yaml read_yaml write_yaml
3030# #' @export
3131# #' @examples
@@ -246,9 +246,9 @@ complete_codecheck_yml <- function(yml_file = "codecheck.yml",
246246
247247 if (apply_updates ) {
248248 yaml :: write_yaml(updated , yml_file )
249- cat(" \n ✓ Changes applied to " , yml_file , " \n\n " , sep = " " )
249+ cat(" \n\u 2713 Changes applied to " , yml_file , " \n\n " , sep = " " )
250250 } else {
251- cat(" \n ⚠ No changes applied. Use apply_updates = TRUE to save changes.\n\n " )
251+ cat(" \n\u 26a0 No changes applied. Use apply_updates = TRUE to save changes.\n\n " )
252252 }
253253 } else {
254254 if (add_mandatory || add_optional ) {
@@ -287,7 +287,7 @@ complete_codecheck_yml <- function(yml_file = "codecheck.yml",
287287# #' \item{issues}{Character vector of any issues found}
288288# #' \item{crossref_metadata}{The metadata retrieved from CrossRef (if available)}
289289# #' }
290- # #' @author Daniel Nüst
290+ # #' @author Daniel Nuest
291291# #' @importFrom httr GET content status_code
292292# #' @export
293293# #' @examples
@@ -394,7 +394,7 @@ validate_codecheck_yml_crossref <- function(yml_file = "codecheck.yml",
394394 issues <- c(issues , issue )
395395 warning(issue )
396396 } else {
397- message(" ✓ Title matches CrossRef metadata" )
397+ message(" \u 2713 Title matches CrossRef metadata" )
398398 }
399399 }
400400
@@ -447,7 +447,7 @@ validate_codecheck_yml_crossref <- function(yml_file = "codecheck.yml",
447447 issues <- c(issues , issue )
448448 warning(issue )
449449 } else {
450- message(" ✓ Author " , i , " name matches: " , local_author $ name )
450+ message(" \u 2713 Author " , i , " name matches: " , local_author $ name )
451451 }
452452 }
453453
@@ -465,11 +465,11 @@ validate_codecheck_yml_crossref <- function(yml_file = "codecheck.yml",
465465 issues <- c(issues , issue )
466466 warning(issue )
467467 } else {
468- message(" ✓ Author " , i , " ORCID matches: " , local_orcid )
468+ message(" \u 2713 Author " , i , " ORCID matches: " , local_orcid )
469469 }
470470 } else {
471471 msg <- paste0(" Author " , i , " has ORCID in local file but not in CrossRef" )
472- message(" ℹ " , msg )
472+ message(" \u 2139 " , msg )
473473 }
474474 }
475475 }
@@ -479,13 +479,13 @@ validate_codecheck_yml_crossref <- function(yml_file = "codecheck.yml",
479479 valid <- length(issues ) == 0
480480
481481 if (! valid ) {
482- message(" \n ⚠ Validation completed with " , length(issues ), " issue(s)" )
482+ message(" \n\u 26a0 Validation completed with " , length(issues ), " issue(s)" )
483483 if (strict ) {
484484 stop(" Validation failed with " , length(issues ), " issue(s):\n " ,
485485 paste(issues , collapse = " \n " ))
486486 }
487487 } else {
488- message(" \n ✓ All validations passed!" )
488+ message(" \n\u 2713 All validations passed!" )
489489 }
490490
491491 invisible (list (
@@ -513,7 +513,7 @@ validate_codecheck_yml_crossref <- function(yml_file = "codecheck.yml",
513513# #' \item{valid}{Logical indicating if all checks passed}
514514# #' \item{issues}{Character vector of any issues found}
515515# #' }
516- # #' @author Daniel Nüst
516+ # #' @author Daniel Nuest
517517# #' @importFrom rorcid orcid_person
518518# #' @export
519519# #' @examples
@@ -624,10 +624,10 @@ validate_codecheck_yml_orcid <- function(yml_file = "codecheck.yml",
624624 issues <- c(issues , issue )
625625 warning(issue )
626626 } else {
627- message(" ✓ Author " , i , " name matches ORCID: " , author $ name , " (" , author $ ORCID , " )" )
627+ message(" \u 2713 Author " , i , " name matches ORCID: " , author $ name , " (" , author $ ORCID , " )" )
628628 }
629629 } else {
630- message(" ℹ Could not retrieve ORCID record for author " , i , " : " , author $ ORCID )
630+ message(" \u 2139 Could not retrieve ORCID record for author " , i , " : " , author $ ORCID )
631631 }
632632 }
633633 }
@@ -653,7 +653,7 @@ validate_codecheck_yml_orcid <- function(yml_file = "codecheck.yml",
653653 next
654654 }
655655
656- message(" ✓ Codechecker " , i , " : " , checker $ name )
656+ message(" \u 2713 Codechecker " , i , " : " , checker $ name )
657657
658658 # Validate ORCID if present
659659 if (! is.null(checker $ ORCID )) {
@@ -690,10 +690,10 @@ validate_codecheck_yml_orcid <- function(yml_file = "codecheck.yml",
690690 issues <- c(issues , issue )
691691 warning(issue )
692692 } else {
693- message(" ✓ Codechecker " , i , " ORCID matches: " , checker $ name , " (" , checker $ ORCID , " )" )
693+ message(" \u 2713 Codechecker " , i , " ORCID matches: " , checker $ name , " (" , checker $ ORCID , " )" )
694694 }
695695 } else {
696- message(" ℹ Could not retrieve ORCID record for codechecker " , i , " : " , checker $ ORCID )
696+ message(" \u 2139 Could not retrieve ORCID record for codechecker " , i , " : " , checker $ ORCID )
697697 }
698698 }
699699 }
@@ -704,13 +704,13 @@ validate_codecheck_yml_orcid <- function(yml_file = "codecheck.yml",
704704 valid <- length(issues ) == 0
705705
706706 if (! valid ) {
707- message(" \n ⚠ ORCID validation completed with " , length(issues ), " issue(s)" )
707+ message(" \n\u 26a0 ORCID validation completed with " , length(issues ), " issue(s)" )
708708 if (strict ) {
709709 stop(" ORCID validation failed with " , length(issues ), " issue(s):\n " ,
710710 paste(issues , collapse = " \n " ))
711711 }
712712 } else {
713- message(" \n ✓ All ORCID validations passed!" )
713+ message(" \n\u 2713 All ORCID validations passed!" )
714714 }
715715
716716 invisible (list (
@@ -739,7 +739,7 @@ validate_codecheck_yml_orcid <- function(yml_file = "codecheck.yml",
739739# #' \item{crossref_result}{Results from CrossRef validation (if performed)}
740740# #' \item{orcid_result}{Results from ORCID validation (if performed)}
741741# #' }
742- # #' @author Daniel Nüst
742+ # #' @author Daniel Nuest
743743# #' @export
744744# #' @examples
745745# #' \dontrun{
@@ -805,7 +805,7 @@ validate_contents_references <- function(yml_file = "codecheck.yml",
805805 if (! is.null(orcid_result )) total_issues <- total_issues + length(orcid_result $ issues )
806806
807807 message(" \n " , rep(" =" , 80 ))
808- message(" ⚠ VALIDATION SUMMARY: " , total_issues , " issue(s) found" )
808+ message(" \u 26a0 VALIDATION SUMMARY: " , total_issues , " issue(s) found" )
809809 message(rep(" =" , 80 ))
810810
811811 if (strict ) {
@@ -818,7 +818,7 @@ validate_contents_references <- function(yml_file = "codecheck.yml",
818818 }
819819 } else {
820820 message(" \n " , rep(" =" , 80 ))
821- message(" ✓ ALL VALIDATIONS PASSED!" )
821+ message(" \u 2713 ALL VALIDATIONS PASSED!" )
822822 message(rep(" =" , 80 ))
823823 }
824824
@@ -874,7 +874,7 @@ is_doi_placeholder <- function(report_doi) {
874874# #' for placeholder patterns.
875875# #' @return Logical value: TRUE if certificate or DOI is a placeholder, FALSE otherwise.
876876# #' If strict=TRUE and either is a placeholder, stops with an error instead.
877- # #' @author Daniel Nüst
877+ # #' @author Daniel Nuest
878878# #' @export
879879# #' @examples
880880# #' \dontrun{
@@ -988,7 +988,7 @@ is_placeholder_certificate <- function(yml_file = "codecheck.yml",
988988# #' @param display_warning Logical. If TRUE (default), displays a warning box in
989989# #' the rendered output when certificate or DOI is a placeholder.
990990# #' @return Invisibly returns TRUE if certificate and DOI are valid, FALSE if any placeholder
991- # #' @author Daniel Nüst
991+ # #' @author Daniel Nuest
992992# #' @export
993993# #' @examples
994994# #' \dontrun{
@@ -1066,7 +1066,7 @@ validate_certificate_for_rendering <- function(yml_file = "codecheck.yml",
10661066 if (display_warning ) {
10671067 cat(" \\ begin{center}\n " )
10681068 cat(" \\ fcolorbox{red}{yellow}{\\ parbox{0.9\\ textwidth}{\\ centering\n " )
1069- cat(" \\ textbf{\\ Large \\ textcolor{red}{⚠ } WARNING \\ textcolor{red}{⚠ }}\\\\\n " )
1069+ cat(" \\ textbf{\\ Large \\ textcolor{red}{\u 26a0 } WARNING \\ textcolor{red}{\u 26a0 }}\\\\\n " )
10701070 cat(" \\ vspace{0.2cm}\n " )
10711071
10721072 # Display each warning part
0 commit comments