print(x) converts x to a string using str and writes it to standard output, appending a newline. print is mainly used for debugging. Another method for writing to stdandard output is sys::stdout in combination with fs::write.