import Parser from './Parser'; import { SoftwarePackage } from '@stencila/schema'; /** * Dockter `Parser` class for R requirements files and source code. * * For each package, meta-data is obtained from http://crandb.r-pkg.org and used to create a `SoftwarePackage` instance * using crosswalks from column "R Package Description" in https://github.com/codemeta/codemeta/blob/master/crosswalk.csv * * System dependencies for each package are obtained from https://sysreqs.r-hub.io. */ export default class RParser extends Parser { /** * Parse a folder by detecting any R requirements or source code files * and return a `SoftwarePackage` instance */ parse(): Promise; /** * Create a `SoftwarePackage` instance from a R package name * * This method fetches meta-data for a R package to populate the properties * of a `SoftwarePackage` instance. It recursively fetches meta-data on the package's * dependencies, including system dependencies. * * @param name Name of the R package */ private createPackage; }