Generate a template R script on disk to be run by a slurm script made using alf_extract_slurm. This function does not need to be called directly if alf_extract_slurm is run with the default copy_rscript = TRUE.

alf_extract_rscript(out_dir = alfdef()$alf_slurm_dir,
  file = "alf_extract.R")

Arguments

out_dir

output directory of R script.

file

R script.

Details

This function is intended to be used in conjunction with alf_extract_slurm. It creates a copy on disk at out_dir of a template R script contained in the alfresco package.

Examples

# NOT RUN {
alf_extract_rscript()
# }