From 898ee3ff2a4e6e55889ea200dc3110e91fc9894c Mon Sep 17 00:00:00 2001 From: Brendan Broderick Date: Wed, 31 Jan 2018 14:42:03 -0800 Subject: [PATCH] Add yaml to script --- day1_s2_copy-files/00_filesystem-practice_comfy.R | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/day1_s2_copy-files/00_filesystem-practice_comfy.R b/day1_s2_copy-files/00_filesystem-practice_comfy.R index c2f7e69..0fa588b 100644 --- a/day1_s2_copy-files/00_filesystem-practice_comfy.R +++ b/day1_s2_copy-files/00_filesystem-practice_comfy.R @@ -1,3 +1,8 @@ +#' --- +#' output: github_document +#' --- + +#' Libraries library(fs) ## Outline of how I would copy the .R files from, e.g., @@ -54,7 +59,6 @@ file.copy(from_files, to_files) ## * not so bad: path is absolute ## use RStudio's autocomplete to help you avoid typos ## path_home() might be handy -ex1_path <- normilze_path(path_home(),) ## use dir_exists() to check you have successfully stored the path ## list files in the other project @@ -73,7 +77,6 @@ ex1_path <- normilze_path(path_home(),) ## copy the files and store the result out <- file_copy(from_files, to_files) - ## inspect the result: notice that it's handy to see the actual paths that were ## copied to!