AI like duplication and editing of files
Arguments
- file
file to duplicate
- new.name
OPTIONAL.name of new file
- open
open file after duplication
Examples
# \donttest{
if(interactive()){
file1s <- paste0(tempfile(),".R")
writeLines("message(
'Sample items: farm, shinyappstore, rpkg'
)", file1s)
ai.duplicate(file1s,'file2.R')
}
# }