Search code examples
rtibble

'New Names...' is printing too slowly and is slowing down R Shiny application


I have an application that prints a lot of 'New names' messages. That was not an issue until recently. Now these chunks are taking longer to print(seems like ~ 1 second lag between each set of messages) and the output in console looks 'prettier' than before- with those blue dots in beginning.

I'm wondering which package I might've erroneously upgraded that landed me in this situation and if I can go back to an older version where these messages printed quickly.

enter image description here

Really appreciate any help on this. Thank you


Solution

  • That output is usual from the readr and readxl packages (both part of the tidyverse, so related to dplyr, but not part of that specific package).

    The reason for those messages is that the function is trying set column names from the file and finding some blank "cells" where a name would be expected. The best solutions are to makes sure that you are reading the correct row for column names, or not set the names from the file. Or fix the source data files to make sure that all the columns have usable names.