# Print a basic message with timestamp
print2("Processing started")
# Suppress output
print2("This won't show", quiet = TRUE)
# Use in a loop
for(i in 1:3) {
print2(sprintf("Processing item %d", i))
}
Run the code above in your browser using DataLab