in R, can I stop print(cat(“”)) from returning NULL? and why does cat(“foo”) return foo>
问题 If I enter print(cat("")) I get NULL I want to use cat() to print out the progress of an R script, but I don't understand why it is returning NULL at the end of all of my concatenated strings, and more importantly, how to get it to stop? 回答1: All your answers are in the documentation for ?cat . The portions that answer your specific question are: Arguments: fill: a logical or (positive) numeric controlling how the output is broken into successive lines. If ‘FALSE’ (default), only newlines