From 9e3aa8b6afc134a815d7396529b19684f74c52eb Mon Sep 17 00:00:00 2001 From: Ramnath Vaidyanathan Date: Wed, 7 Nov 2012 11:03:00 -0500 Subject: [PATCH] use copy_dir instead of system commands. fixes error in windows --- R/author.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/author.R b/R/author.R index cd6b3f9..629ed6d 100644 --- a/R/author.R +++ b/R/author.R @@ -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)