Skip to content

Conversation

@AABoyles
Copy link
Contributor

Contributes to but does NOT fix #436: the API documentation will need to be rebuilt and deployed.

Copy link
Member

@georgestagg georgestagg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks great! Some minor suggestions are below.

* Evaluate the given R code, returning a promise for no return data.
* @param {string} code The R code to evaluate.
* @param {EvalROptions} [options] Options for the execution environment.
* @returns {Promise<undefined>} A promise which fires when the R code completes, but returns no data.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @returns {Promise<undefined>} A promise which fires when the R code completes, but returns no data.
* @returns {Promise<void>} A promise which fires when the R code completes, but returns no data.

* Evaluate the given R code, returning a promise for a boolean value. If the returned R value is not a boolean, an error will be thrown.
* @param {string} code The R code to evaluate.
* @param {EvalROptions} [options] Options for the execution environment.
* @returns {Promise<unknown>} The result of the computation.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @returns {Promise<unknown>} The result of the computation.
* @returns {Promise<boolean>} The result of the computation.

* Evaluate the given R code, returning a promise for a number. If the returned R value is not a number, an error will be thrown.
* @param {string} code The R code to evaluate.
* @param {EvalROptions} [options] Options for the execution environment.
* @returns {Promise<unknown>} The result of the computation.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @returns {Promise<unknown>} The result of the computation.
* @returns {Promise<number>} The result of the computation.

* Evaluate the given R code, returning a promise for a string. If the returned R value is not a string, an error will be thrown.
* @param {string} code The R code to evaluate.
* @param {EvalROptions} [options] Options for the execution environment.
* @returns {Promise<unknown>} The result of the computation.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @returns {Promise<unknown>} The result of the computation.
* @returns {Promise<string>} The result of the computation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add inline documentation to evalR

2 participants