class
RErrPrinterSafely printing to the R console from threaded code.
Public functions
-
template<class T>auto operator<<(T& object) -> RErrPrinter&
-
template<class T>auto operator<<(const T& object) -> RErrPrinter&
- auto operator<<(std::ostream&(*)(std::ostream&) object) -> RErrPrinter&
Function documentation
template<class T>
RErrPrinter& RcppThread:: RErrPrinter:: operator<<(T& object)
Parameters | |
---|---|
object | a string (or coercible object) to print. |
prints object
to R error stream íf called from main thread; otherwise adds a printable version of object
to a buffer for deferred printing.
Declared as a friend in RMonitor
.
template<class T>
RErrPrinter& RcppThread:: RErrPrinter:: operator<<(const T& object)
Parameters | |
---|---|
object | a string (or coercible object) to print. |
prints object
to R error stream íf called from main thread; otherwise adds a printable version of object
to a buffer for deferred printing.
Declared as a friend in RMonitor
.
RErrPrinter& RcppThread:: RErrPrinter:: operator<<(std::ostream&(*)(std::ostream&) object)
Parameters | |
---|---|
object | a string (or coercible object) to print. |
prints object
to R error stream íf called from main thread; otherwise adds a printable version of object
to a buffer for deferred printing.
Declared as a friend in RMonitor
.