From 967655bc6782e7eb86caf72427e1a8d3dea97b77 Mon Sep 17 00:00:00 2001 From: Mohammad Atif Haidry Date: Thu, 16 Nov 2023 16:00:09 -0600 Subject: [PATCH] Code Style (link in R for Data Science) - Update --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ef5ed1c..8666214 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Also see my [Python Guide](https://github.com/skhiggins/Python_guide) and [Stata ## Style -For coding style practices, follow the [tidyverse style guide](https://style.tidyverse.org/). +For coding style practices, follow the [tidyverse style guide](https://style.tidyverse.org/) and the [chapter of R for Data Science (2nd Edition) on code style] (https://r4ds.hadley.nz/workflow-style). - While you should read the style guide and do your best to follow it, once you save the script you can use `styler::style_file()` to fix its formatting and ensure it adheres to the [tidyverse style guide](https://style.tidyverse.org/). - Note: `styler::style_file()` overwrites files (if styling results in a change of the code to be formatted). The documentation strongly suggests to only style files that are under version control or to create a backup copy.