ExtPackageFile {biodb} | R Documentation

## Extension package file class.

### Description

A class for generating the package.R file for a biodb extension.

### Details

This class generates the package.R file, writing a reference to the generated skeleton vignette, and possibly including directives for C++ code.

### Super classes

`biodb::ExtGenerator` -> `biodb::ExtFileGenerator` -> `ExtPackageFile`

### Methods

#### Public methods

- `ExtPackageFile$new()`

- `ExtPackageFile$clone()`

Inherited methods

- `biodb::ExtGenerator$generate()`

- `biodb::ExtGenerator$upgrade()`

#### Method `new()`

Initializer.

##### Usage

    ExtPackageFile$new(...)

##### Arguments

`...`

  See the constructor of ExtFileGenerator for the parameters.

##### Returns

Nothing.

#### Method `clone()`

The objects of this class are cloneable with this method.

##### Usage

    ExtPackageFile$clone(deep = FALSE)

##### Arguments

`deep`

  Whether to make a deep clone.

### Examples

    # Generate a new package:
    pkgFolder <- file.path(tempfile(), 'biodbFoo')
    dir.create(pkgFolder, recursive=TRUE)
    biodb::ExtPackageFile$new(path=pkgFolder, dbName='foo.db')$generate()

[Package biodb version 1.2.2 Index]