#' Fix unicode histograms on Windows #' #' This functions changes your session's locale to address issues with printing #' histograms on Windows on versions of R below 4.2.1. #' #' There are known issues with printing the spark-histogram characters when #' printing a data frame, appearing like this: "". #' This longstanding problem originates in the low-level code for printing #' dataframes. This was addressed in R version 4.2.1. #' #' @seealso [skim_without_charts()] #' @export fix_windows_histograms <- function() { message( "This function will change your system locale. It may have other ", "unintended effects." ) response <- readline("Continue? (Y/n)") if (tolower(response) != "n") { Sys.setlocale("LC_CTYPE", "Chinese") } else { message("Locale was not changed.") } invisible(NULL) }