LibraryCarpentry / lc-r

Introduction to R
http://librarycarpentry.org/lc-r/
Other
14 stars 28 forks source link

Data viz: create_dir - Tack to fs package, a cross platform file system package #18

Closed libjohn closed 4 years ago

libjohn commented 4 years ago

data viz lesson | code @ lines 55-57

The Tidyverse packages are introduced, installed and loaded in earlier lessons. fs package is installed when install.packages("tidyverse"). Therefore, I propose using the fs package for file system manipulation. I think the fs package offers many advantages...

Original

dir.create("data")
dir.create("data_output")
dir.craete(fig.output")

Proposed


library(fs)   # https://fs.r-lib.org/.  fs is a cross-platform, uniform interface to file system operations via R. 
dir_create("data")
dir_create("data_output")
dir_create("fig_output")
libjohn commented 4 years ago

merged https://github.com/LibraryCarpentry/lc-r/pull/31