C# Class Microsoft.R.DataInspection.REvaluationResultInfoExtensions

Mostrar archivo Open project: Microsoft/RTVS

Public Methods

Method Description
AssignAsync ( this info, string value, CancellationToken cancellationToken = default(CancellationToken) ) : Task

If this evaluation result corresponds to an expression that is a valid assignment target (i.e. valid on the left side of R operator <-, such as a variable), assigns the specified value to that target.

DescribeChildrenAsync ( this info, REvaluationResultProperties properties, string repr, int maxCount = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task>

Like RSessionExtensions.DescribeChildrenAsync, but returns children of the object described by the provided evaluation info.

GetEnvironmentIndependentExpression ( this info ) : string

Computes the expression that can be used to produce the same value in any environment.

GetValueAsync ( this info, REvaluationResultProperties properties, string repr, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Re-evaluates the expression that was used to create this evaluation object in its original context, but with a new representation function and properties.

Evaluating an expression always produces a regular value, never a promise or an active binding. Thus, this method can be used to compute the current value of an IRActiveBindingInfo, or force an IRPromiseInfo.

Method Details

AssignAsync() public static method

If this evaluation result corresponds to an expression that is a valid assignment target (i.e. valid on the left side of R operator <-, such as a variable), assigns the specified value to that target.
public static AssignAsync ( this info, string value, CancellationToken cancellationToken = default(CancellationToken) ) : Task
info this
value string Value to assign. Must be a valid R expression.
cancellationToken System.Threading.CancellationToken
return Task

DescribeChildrenAsync() public static method

Like RSessionExtensions.DescribeChildrenAsync, but returns children of the object described by the provided evaluation info.
public static DescribeChildrenAsync ( this info, REvaluationResultProperties properties, string repr, int maxCount = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task>
info this
properties REvaluationResultProperties
repr string
maxCount int
cancellationToken System.Threading.CancellationToken
return Task>

GetEnvironmentIndependentExpression() public static method

Computes the expression that can be used to produce the same value in any environment.
public static GetEnvironmentIndependentExpression ( this info ) : string
info this
return string

GetValueAsync() public static method

Re-evaluates the expression that was used to create this evaluation object in its original context, but with a new representation function and properties.
Evaluating an expression always produces a regular value, never a promise or an active binding. Thus, this method can be used to compute the current value of an IRActiveBindingInfo, or force an IRPromiseInfo.
Evaluation of the expression produced an error.
public static GetValueAsync ( this info, REvaluationResultProperties properties, string repr, CancellationToken cancellationToken = default(CancellationToken) ) : Task
info this
properties REvaluationResultProperties
repr string
cancellationToken System.Threading.CancellationToken
return Task