nuget server logo nuget api documents
↑

API Docs / REnv / Extensions

Extensions

Full name SMRUCC.Rsharp.Runtime.Extensions Assembly REnv Members 11

01 Syntax

SMRUCC.Rsharp.Runtime.Extensions

02 Methods

NameOverloadsSummary
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

method TryCatch #
TryCatch(Func(Of Object), Boolean)

If exception happens, then this function will catch the exceptin object and then returns the error.

Parameters
NameTypeDescription
runScriptFunc(Of Object)

-

method MeasureArrayElementType #
MeasureArrayElementType(Array)

这个函数只会尝试第一个不为空的元素的类型

Parameters
NameTypeDescription
arrayArray

-

method MeasureRealElementType #
MeasureRealElementType(Array, Type)

这个会遵循类型缩放的原则返回最大的类型

Parameters
NameTypeDescription
arrayArray

-

Returns

if all of the element in the given array is nothing then function returns the defaultType value

method isCallable #
isCallable(Object)

test target object is a RFunction or not

Parameters
NameTypeDescription
xObject

-

method Push #
Push(Environment, IEnumerable(Of DeclareNewSymbol))

push runtime function parameters

Parameters
NameTypeDescription
envEnvironment

-

parametersIEnumerable(Of DeclareNewSymbol)

-

method strictOption #
strictOption(Environment, Nullable(Of Boolean))

get strict options value

Parameters
NameTypeDescription
envEnvironment

The runtime context

optNullable(Of Boolean)

-

method verboseOption #
verboseOption(Environment, Nullable(Of Boolean))

get verbose options value

Parameters
NameTypeDescription
envEnvironment

The runtime context

optNullable(Of Boolean)

-

method MeasureVectorTypes #
MeasureVectorTypes(Array, Boolean, Boolean)
method MeasureVectorType #
MeasureVectorType(Type())
method debugOption #
debugOption(Environment, Nullable(Of Boolean))
method as_iterator #
as_iterator(IEnumerable(Of T))