'Warming message: 'tput' cols' had status 2

I get the following warning when running R. It comes up when I start up R and also in some packages that that print output to the console such as status bar.

Warning message:
In system2("tput", "cols", stdout = TRUE) :
  running command ''tput' cols' had status 2

Despite extensive search I cannot find information on this warning. Can anyone help diagnose and fix it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source