Top "Output-formatting" questions

questions on how to output non-string objects into one or more lines of text, for instance numbers (precision, justify), or arrays (placing separators, newlines)

In bash, how could I add integers with leading zeroes and maintain a specified buffer

For example, I want to count from 001 to 100. Meaning the zero buffer would start off with 2, 1, then eventually 0 when it …

bash shell output-formatting
Possible to print more than 100 rows of a data.table?

The data.table has a nice feature that suppresses output to the head and tail of the table. Is it …

r printing data.table options output-formatting
avoid string printed to console getting truncated (in RStudio)

I want to print a long string to the RStudio console so that it does not get truncated. > paste(1:300, …

r rstudio settings output-formatting
Rewinding std::cout to go back to the beginning of a line

I'm writing a command-line tool for Mac OS X that processes a bunch of files. I would like to show …

c++ macos terminal stdout output-formatting
How to dump an output from SQL Server Profiler 2008 to a CSV-like file

I am debugging stored procedures, and right now I am interested in what ran in what order and which which …

tabular sql-server-profiler output-formatting
How to format the output of kubectl describe to JSON

kubectl get command has this flag -o to format the output. Is there a similar way to format the output …

kubernetes output-formatting kubectl
Is there a way to output text to the R console in color

I am writing a script and I want to output text messages to the console with different colors depending on …

r colors console output-formatting
Overriding "Variables not shown" in dplyr, to display all columns from df

When I have a column in a local data frame, sometimes I get the message Variables not shown such as …

r dplyr options output-formatting displayformat
Print, cat, paste in R separated by newline character

I want to do the print the elements of a vector line by line in R like below 1 2 3 However, when …

r output-formatting
Print a data frame with columns aligned (as displayed in R)

I have the following data frame in R: > dframe Mean Median Candidates 85.68 60 NonCands 9.21 4 Multi 27.48 17 Mono 4.43 3 Multi NonCands 22.23 15 I want …

r dataframe text-alignment output-formatting