-
Notifications
You must be signed in to change notification settings - Fork 87
Add inline documentation for evalR methods #571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
georgestagg
left a comment
There was a problem hiding this 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * @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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * @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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * @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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * @returns {Promise<unknown>} The result of the computation. | |
| * @returns {Promise<string>} The result of the computation. |
Contributes to but does NOT fix #436: the API documentation will need to be rebuilt and deployed.