ai.duplicate | R Documentation |
AI like duplication and editing of files
ai.duplicate(file = NULL, new.name = NULL, open = TRUE)
file |
file to duplicate |
new.name |
OPTIONAL.name of new file |
open |
open file after duplication |
duplicated files with edited texts
if(interactive()){
file1s <- paste0(tempfile(),".R")
writeLines("message(
'Sample items: farm, shinyappstore, rpkg'
)", file1s)
ai.duplicate(file1s,'file2.R')
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.