Learn R Programming

quickcode (version 1.0.6)

ai.duplicate: Prompt guided duplication and editing of files

Description

AI like duplication and editing of files

Usage

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

Value

duplicated files with edited texts

Arguments

file

file to duplicate

new.name

OPTIONAL.name of new file

open

open file after duplication

Examples

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


Run the code above in your browser using DataLab