g.data.upgrade {g.data}R Documentation

Upgrade a version 1 DDP to version 2

Description

Convert an old-style DDP to the current format.

Usage

g.data.upgrade(dir, warn=TRUE, backward=FALSE)

Arguments

dir Directory containing the DDP.
warn Logical: produce a warning.
backward Logical: Make DDP compatible with old g.data, using symbolic links.

Details

Version 1 DDP's were structured like a package, with a `DESCRIPTION' file, `R' subdirectory, and `data' subdirectory. In version 2, all data files live at the top level. Also, data filenames have `@' symbols preceding uppercase letters, see g.data.mash.

With backward=TRUE, we attempt to make a DDP valid under both v1 and v2 g.data. Symbolic links are used, so this won't work under Windows. If you take one of these backward-compatible DDP's and run g.data.upgrade(backward=FALSE), the backward-compatibility is eliminated.

Value

None, used for its side effect of reconfiguring `dir'.

See Also

g.data.mash


[Package g.data version 2.0 Index]