@types/r-script
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

Installation

npm install --save @types/r-script

Summary

This package contains type definitions for r-script (https://github.com/joshkatz/r-script).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/r-script.

index.d.ts

interface R {
    data(...args: any[]): this;
    call(callback: (err: any, d: any) => void): void;
    call(options: R.Options, callback: (err: any, d: any) => void): void;
    callSync(options?: R.Options): any;
}
declare namespace R {
    interface Options {
        dataframe?: "rows" | "colums" | "values" | undefined;
        matrix?: "rowmajor" | "columnmajor" | undefined;
        Date?: "ISO8601" | "epoch" | undefined;
        POSIXt?: "string" | "ISO8601" | "epoch" | "mongo" | undefined;
        factor?: "string" | "integer" | undefined;
        complex?: "string" | "list" | undefined;
        raw?: "base64" | "hex" | "mongo" | undefined;
        null?: "list" | "null" | undefined;
        na?: "null" | "string" | undefined;
        auto_unbox?: boolean | undefined;
        digits?: number | undefined;
        pretty?: boolean | undefined;
        force?: boolean | undefined;
        [key: string]: any;
    }
}
declare function R(scriptPath: string): R;
export = R;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Adrian Leonhard.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/r-script

Weekly Downloads

161

Version

0.0.6

License

MIT

Unpacked Size

4.5 kB

Total Files

5

Last publish

Collaborators

  • types