Skip to content

Commit

Permalink
Add yaml to script
Browse files Browse the repository at this point in the history
  • Loading branch information
btbroderick committed Jan 31, 2018
1 parent 4a8e966 commit 898ee3f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions day1_s2_copy-files/00_filesystem-practice_comfy.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#' ---
#' output: github_document
#' ---

#' Libraries
library(fs)

## Outline of how I would copy the .R files from, e.g.,
Expand Down Expand Up @@ -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
Expand All @@ -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!

Expand Down

0 comments on commit 898ee3f

Please sign in to comment.