Skip to content

Commit

Permalink
improves readme style
Browse files Browse the repository at this point in the history
  • Loading branch information
Nowosad committed Nov 16, 2024
1 parent 7d036e7 commit 5c1c315
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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)
Expand Down Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 5c1c315

Please sign in to comment.