copyRule: Rule for copying a file into a new location

View source: R/copyRule.R

copyRuleR Documentation

Rule for copying a file into a new location

Description

This rule is for copying a file from one location to another. The rule executes the following command: ⁠$(CP) depends[1] target⁠

Usage

copyRule(target, depends, task = "all")

Arguments

target

Target file name to copy the file to

depends

name of the file to copy from (only the first element of the vector is used)

task

A character vector of parent task names. The mechanism of tasks allows to group rules. Anything different from 'all' will cause creation of a new task depending on the given rule. Executing ⁠make taskname⁠ will then force building of this rule.

Value

Instance of S3 class rmake.rule

Author(s)

Michal Burda

See Also

rule(), makefile()


rmake documentation built on Aug. 26, 2025, 5:09 p.m.