Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nullfile

Gets the pathname or a connection to the NULL device on the current platform


Description

Gets the pathname or a connection to the NULL device on the current platform.

Usage

nullfile()
  nullcon()

Value

nullfile() returns a character string, which is "/dev/null" except on Windows where it is "nul:". nullcon() returns a newly opened (binary) connection to the NULL device - make sure to close it when no longer needed.

Author(s)

Henrik Bengtsson

See Also

In R (>= 3.6.0), there exists base::nullfile(), which is identical to R.utils::nullfile().


R.utils

Various Programming Utilities

v2.10.1
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.