R - Log Message (Output stream)

> Procedural Languages > R

1 - About

How to manage the output stream of R.

3 - Management

3.1 - Configuration

  • Invisible functions return values which can be assigned, but do not print when they are not assigned.

example:

invisible(.libPaths())
Advertising

3.2 - Function

  • cat
cat("nico","gerard","\n",sep=" ")
  • sprintf
cat(sprintf("Current working dir: %s\n", wd))
  • print
print("nico")
  • message
message(sprintf("Current working dir: %s\n", wd))
lang/r/log.txt · Last modified: 2018/06/26 14:35 by gerardnico