1 | import { SoftwarePackage } from '@stencila/schema';
|
2 | import PackageGenerator from './PackageGenerator';
|
3 | import IUrlFetcher from './IUrlFetcher';
|
4 |
|
5 |
|
6 |
|
7 | export default class RGenerator extends PackageGenerator {
|
8 | |
9 |
|
10 |
|
11 | date: string;
|
12 | constructor(urlFetcher: IUrlFetcher, pkg: SoftwarePackage, folder?: string);
|
13 | applies(): boolean;
|
14 | envVars(sysVersion: string): Array<[string, string]>;
|
15 | aptKeysCommand(sysVersion: string): string;
|
16 | aptRepos(base: string): Array<string>;
|
17 | aptPackages(sysVersion: string): Array<string>;
|
18 | stencilaInstall(sysVersion: string): string | undefined;
|
19 | installFiles(sysVersion: string): Array<[string, string]>;
|
20 | installCommand(sysVersion: string): string | undefined;
|
21 | /**
|
22 | * The files to copy into the Docker image
|
23 | *
|
24 | * Copies all `*.R` files to the container
|
25 | */
|
26 | projectFiles(): Array<[string, string]>;
|
27 | /**
|
28 | * The command to execute in a container created from the Docker image
|
29 | *
|
30 | * If there is a top-level `main.R` or `cmd.R` then that will be used,
|
31 | * otherwise, the first `*.R` files by alphabetical order will be used.
|
32 | */
|
33 | runCommand(): string | undefined;
|
34 | }
|