In order for my histograms from skimr to knit properly, I need to call the skimr::fix_windows_histogram()
function in my Rmarkdown document. This works well, but I don't need or want this function to run when using R interactively because it prompts the user in the console to confirm it and locks down execution. Is there a chunk option or function wrapper that makes it so this function will only run when knitting? Or is there a way to automatically confirm the prompt?