Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[suggestion] data structures episode 04: add line of code introducing the dir.create function #494
After this point in Episode 4 Data Structures:
I would suggest to introduce a line here to introduce the useful function dir.create()
and explain that this will automatically create a new folder called data in the directory we are working with.
While I see the value in this, I wonder if it might not cause more headache than value-add.
Many novices have a lot of trouble determining/setting/understanding the concept of a working directory, and creating directories in R might be more complicated than just making a new directory with Finder/Windows Explorer, which helps learners see the concordance between the files they are accessing in R and the file system browser they are used to and comfortable with.
But I also think that this whole cat part should be cut out and the content adjusted to use the gapminder dataset instead. Otherwise it seems a bit out of place. But perhaps that's just me?
In non-SWC workshops, I've found
But adding a brief "Miscellaneous Tip" with
But the cats to gapminder transition is a whole other issue.