Skip to content

Commit

Permalink
use copy_dir instead of system commands. fixes error in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ramnathv committed Nov 7, 2012
1 parent 1eec7d5 commit 9e3aa8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/author.R
Expand Up @@ -10,7 +10,7 @@ author <- function(deckdir){
return('Directory already exists. Please choose a different name.')
}
scaffold = system.file('skeleton', package = 'slidify')
system(sprintf('cp -r %s %s', scaffold, deckdir))
copy_dir(scaffold, deckdir)
message('Finished creating slide directory...')
message('Switching to slide directory...')
setwd(deckdir)
Expand Down

0 comments on commit 9e3aa8b

Please sign in to comment.