R# console nice print supports.
printer
01 Syntax
SMRUCC.Rsharp.Runtime.Internal.ConsolePrinter.printer
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| f64_InternalToString | 1 | get formatter function for double to string |
| AttachConsoleFormatter | 1 | Object -> String |
| AttachInternalConsoleFormatter | 1 | Object -> String |
| printInternal | 1 | Print the internal R# runtime object |
| ValueToString | 1 | Debugger test api of printer.ToString()) |
| ToString | 1 | The external string formatter will overrides the internal formatter |
| getStrings | 1 | populate strings from the data array |
| printArray | 1 | Print vector elements |
| getMaxColumns | 1 | get max width to break the table |
| AttachConsoleFormatter | 1 | |
| AttachInternalConsoleFormatter | 1 |
03 Members
f64_InternalToString(
Boolean, GlobalEnvironment)get formatter function for double to string
Parameters
| Name | Type | Description |
|---|---|---|
printContent | Boolean | - |
env | GlobalEnvironment | - |
AttachConsoleFormatter``1(
IStringBuilder)Object -> String
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
formatter | IStringBuilder | - |
AttachInternalConsoleFormatter``1(InternalToString)
Object -> String
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
formatter | InternalToString | - |
Print the internal R# runtime object
Parameters
| Name | Type | Description |
|---|---|---|
x | Object | - |
listPrefix | String | - |
opts | PrinterOptions | - |
env | GlobalEnvironment | - |
ValueToString(
Object, GlobalEnvironment)Debugger test api of printer.ToString()
Parameters
| Name | Type | Description |
|---|---|---|
x | Object | - |
The external string formatter will overrides the internal formatter
Parameters
| Name | Type | Description |
|---|---|---|
elementType | Type | - |
populate strings from the data array
Parameters
| Name | Type | Description |
|---|---|---|
xVec | Array | - |
elementType | Type | - |
env | GlobalEnvironment | - |
Returns
try to convert any kind of array as the string collection for do console print
Print vector elements
Parameters
| Name | Type | Description |
|---|---|---|
xvec | Array | - |
getMaxColumns(Environment)
get max width to break the table
Parameters
| Name | Type | Description |
|---|---|---|
env | Environment | - |
AttachConsoleFormatter(
IStringBuilder)AttachInternalConsoleFormatter(InternalToString)