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