Learn R Programming

SpaDES.core (version 0.2.4)

copyModule: Create a copy of an existing module

Description

Create a copy of an existing module

Usage

copyModule(from, to, path, ...)

# S4 method for character,character,character copyModule(from, to, path, ...)

# S4 method for character,character,missing copyModule(from, to, path, ...)

Arguments

from

The name of the module to copy.

to

The name of the copy.

path

The path to a local module directory. Defaults to the path set by the spades.modulePath option. See setPaths.

...

Additional arguments to file.copy, e.g., overwrite = TRUE.

Value

Invisible logical indicating success (TRUE) or failure (FALSE).

Examples

Run this code
# NOT RUN {
copyModule(from, to)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab