createMakeBatchRule: Create text for a make rule using RBATCH

Description Usage Arguments

View source: R/createMakefiles.R

Description

Create the text for a gnu make target that runs a function using R CMD BATCH and callFunction.R

Usage

1
2
createMakeBatchRule(target, depends = c(), fun, funargs = c(),
  scripts = c(), logfile)

Arguments

target

character: the target name

depends

character vector: the dependencies (omit callFunction.R and scripts; these will be automatically added)

fun

character: the function name, to be ultimately evaluated in an environment where the scripts have been sourced and library(vizlab) has been called. if fun is missing, the command section of the make target declaration will be omitted

scripts

character vector: the scripts or script directories to load. omit 'scripts' because this will be automatically preprended

logfile

character: the filename where the R CMD BATCH logfile should be saved. omit 'vizlab/make/log' because this will be automatically prepended


USGS-VIZLAB/vizlab documentation built on July 10, 2019, 12:08 a.m.