Skip to contents

AI like duplication and editing of files

Usage

ai.duplicate(file = NULL, new.name = NULL, open = TRUE)

Arguments

file

file to duplicate

new.name

OPTIONAL.name of new file

open

open file after duplication

Value

duplicated files with edited texts

Examples

# \donttest{
if(interactive()){
file1s <- paste0(tempfile(),".R")
writeLines("message(
'Sample items: farm, shinyappstore, rpkg'
)", file1s)
ai.duplicate(file1s,'file2.R')
}
# }