From 32127aa905583df7695cafbeee986e87209a8dc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98ystein=20S=C3=B8rensen?= Date: Wed, 20 Sep 2023 08:43:39 +0200 Subject: [PATCH] Update pkg_building.Rmd The link to the code chapter in The R Packages Book did not work, presumably because of the uppercase in `Code.html`. With this modification it works. --- pkg_building.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg_building.Rmd b/pkg_building.Rmd index 6a8a70115..ebf8e479b 100644 --- a/pkg_building.Rmd +++ b/pkg_building.Rmd @@ -64,7 +64,7 @@ The [`tabulizer` package](https://github.com/ropensci/tabulizer) e.g. has an int ## Code Style {#code-style} -- For more information on how to style your code, name functions, and R scripts inside the `R/` folder, we recommend reading the [code chapter in The R Packages book](https://r-pkgs.org/Code.html). We recommend the [`styler` package](https://github.com/r-lib/styler) for automating part of the code styling. We suggest reading the [Tidyverse style guide](https://style.tidyverse.org/). +- For more information on how to style your code, name functions, and R scripts inside the `R/` folder, we recommend reading the [code chapter in The R Packages book](https://r-pkgs.org/code.html). We recommend the [`styler` package](https://github.com/r-lib/styler) for automating part of the code styling. We suggest reading the [Tidyverse style guide](https://style.tidyverse.org/). - You can choose to use `=` over `<-` as long you are consistent with one choice within your package. We recommend avoiding the use of `->` for assignment within a package. If you do use `<-` throughout your package, and you also use `R6` in that package, you'll be forced to use `=` for assignment within your `R6Class` construction - this is not considered an inconsistency because you can't use `<-` in this case.