diff --git a/README.Rmd b/README.Rmd index 5be67153d..fa97783a4 100644 --- a/README.Rmd +++ b/README.Rmd @@ -141,7 +141,7 @@ Install it with the following commands: #| eval=FALSE install.packages("remotes") # To reproduce the first Part (chapters 1 to 8): -install.packages('geocompkg', repos = c('https://geocompr.r-universe.dev', 'https://cloud.r-project.org'), dependencies = TRUE, force = TRUE) +install.packages("geocompkg", repos = c("https://geocompr.r-universe.dev", "https://cloud.r-project.org"), dependencies = TRUE, force = TRUE) ``` Installing `geocompkg` will also install core packages required for reproducing **Part I of the book** (chapters 1 to 8). @@ -154,8 +154,8 @@ To reproduce book **in its entirety**, run the following command (which installs #| eval=FALSE # Install packages to fully reproduce book (may take several minutes): options(repos = c( - geocompx = 'https://geocompx.r-universe.dev', - cran = 'https://cloud.r-project.org/' + geocompx = "https://geocompx.r-universe.dev", + cran = "https://cloud.r-project.org/" )) # From geocompx.r-universe.dev (recommended): install.packages("geocompkg", dependencies = TRUE) @@ -262,7 +262,7 @@ for(i in script_names[45:length(script_names)]) { ```{r gen-stats, echo=FALSE, message=FALSE, warning=FALSE, eval=FALSE} # source("code/generate-chapter-code.R") book_stats = readr::read_csv("extdata/word-count-time.csv", - col_types=('iiDd')) + col_types = ("iiDd")) # to prevent excessive chapter count if (Sys.Date() > max(book_stats$date) + 5) { diff --git a/README.md b/README.md index 14f67d61d..b3c818df8 100644 --- a/README.md +++ b/README.md @@ -211,7 +211,7 @@ with the following commands: ``` r install.packages("remotes") # To reproduce the first Part (chapters 1 to 8): -install.packages('geocompkg', repos = c('https://geocompr.r-universe.dev', 'https://cloud.r-project.org'), dependencies = TRUE, force = TRUE) +install.packages("geocompkg", repos = c("https://geocompr.r-universe.dev", "https://cloud.r-project.org"), dependencies = TRUE, force = TRUE) ``` Installing `geocompkg` will also install core packages required for @@ -229,8 +229,8 @@ run!): ``` r # Install packages to fully reproduce book (may take several minutes): options(repos = c( - geocompx = 'https://geocompx.r-universe.dev', - cran = 'https://cloud.r-project.org/' + geocompx = "https://geocompx.r-universe.dev", + cran = "https://cloud.r-project.org/" )) # From geocompx.r-universe.dev (recommended): install.packages("geocompkg", dependencies = TRUE)