Extensions
01 Syntax
SMRUCC.Rsharp.Runtime.Extensions
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| TryCatch | 1 | If exception happens, then this function will catch the exceptin object and then returns the error. |
| MeasureArrayElementType | 1 | 这个函数只会尝试第一个不为空的元素的类型 |
| MeasureRealElementType | 1 | 这个会遵循类型缩放的原则返回最大的类型 |
| isCallable | 1 | test target object is a RFunction or not |
| Push | 1 | push runtime function parameters |
| strictOption | 1 | get strict options value |
| verboseOption | 1 | get verbose options value |
| MeasureVectorTypes | 1 | |
| MeasureVectorType | 1 | |
| debugOption | 1 | |
| as_iterator | 1 |
03 Members
TryCatch(
Func(Of Object), Boolean)If exception happens, then this function will catch the exceptin object and then returns the error.
Parameters
| Name | Type | Description |
|---|---|---|
runScript | Func(Of Object) | - |
MeasureArrayElementType(
Array)这个函数只会尝试第一个不为空的元素的类型
Parameters
| Name | Type | Description |
|---|---|---|
array | Array | - |
MeasureRealElementType(
Array, Type)这个会遵循类型缩放的原则返回最大的类型
Parameters
| Name | Type | Description |
|---|---|---|
array | Array | - |
Returns
if all of the element in the given array is nothing then function returns the defaultType value
isCallable(
Object)test target object is a RFunction or not
Parameters
| Name | Type | Description |
|---|---|---|
x | Object | - |
Push(Environment,
IEnumerable(Of DeclareNewSymbol))push runtime function parameters
Parameters
| Name | Type | Description |
|---|---|---|
env | Environment | - |
parameters | IEnumerable(Of DeclareNewSymbol) | - |
strictOption(Environment,
Nullable(Of Boolean))get strict options value
Parameters
| Name | Type | Description |
|---|---|---|
env | Environment | The runtime context |
opt | Nullable(Of Boolean) | - |
verboseOption(Environment,
Nullable(Of Boolean))get verbose options value
Parameters
| Name | Type | Description |
|---|---|---|
env | Environment | The runtime context |
opt | Nullable(Of Boolean) | - |
MeasureVectorTypes(
Array, Boolean, Boolean)MeasureVectorType(
Type())debugOption(Environment,
Nullable(Of Boolean))as_iterator(
IEnumerable(Of T))