Skip to content

Commit bfe27d3

Browse files
committed
also package elevatr
1 parent 6a92039 commit bfe27d3

1 file changed

Lines changed: 16 additions & 25 deletions

File tree

rr5r.qmd

Lines changed: 16 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ In this chapter we will guide you through the installation of R, RStudio and the
1515

1616
## R
1717

18-
You will need **R** installed on your computer.
19-
**R stats** (how it is also known) is a programming language and free software environment for statistical computing and graphics supported by the R Foundation for Statistical Computing.
18+
You will need **R** installed on your computer. **R stats** (how it is also known) is a programming language and free software environment for statistical computing and graphics supported by the R Foundation for Statistical Computing.
2019

21-
The download links live at [The Comprehensive R Archive Network](https://cran.r-project.org/) (aka CRAN).
22-
The most recent version is `4.5.1`, but you can use `>= 4.1.x` if you already have it installed.
20+
The download links live at [The Comprehensive R Archive Network](https://cran.r-project.org/) (aka CRAN). The most recent version is `4.5.1`, but you can use `>= 4.1.x` if you already have it installed.
2321

2422
:::: {.panel-tabset .nav-pills}
2523
### Windows
@@ -32,15 +30,13 @@ You will also need to install [Rtools](https://cran.r-project.org/bin/windows/Rt
3230

3331
### Mac
3432

35-
[Download R-4.5.1 for MacOX](https://cran.r-project.org/).
36-
You will have to choose between the *arm64* or the *x86-64* version.
33+
[Download R-4.5.1 for MacOX](https://cran.r-project.org/). You will have to choose between the *arm64* or the *x86-64* version.
3734

3835
Download the `.pkg` file and install it as usual.
3936

4037
### Ubuntu
4138

42-
> These are instructions for Ubuntu.
43-
> If you use other linux distribution, please follow the instructions on [The Comprehensive R Archive Network - CRAN](https://cran.r-project.org/bin/linux/).
39+
> These are instructions for Ubuntu. If you use other linux distribution, please follow the instructions on [The Comprehensive R Archive Network - CRAN](https://cran.r-project.org/bin/linux/).
4440
4541
You can look for R in the Ubuntu **Software Center** or install it via the terminal:
4642

@@ -71,13 +67,11 @@ sudo apt install r-base r-base-core r-recommended r-base-dev
7167
\[*Optional*\] To keep up-to-date r version and packages, you can follow the instructions at [r2u](https://eddelbuettel.github.io/r2u/)
7268
::::
7369

74-
After this installation, you don't need to open R base.
75-
Please proceed to install RStudio.
70+
After this installation, you don't need to open R base. Please proceed to install RStudio.
7671

7772
## RStudio
7873

79-
RStudio Desktop is an integrated development environment (IDE) for R.
80-
It includes a console, syntax-highlighting editor that supports direct code execution, as well as tools for plotting, history, debugging and workspace management.
74+
RStudio Desktop is an integrated development environment (IDE) for R. It includes a console, syntax-highlighting editor that supports direct code execution, as well as tools for plotting, history, debugging and workspace management.
8175

8276
RStudio is available for free download from [Posit RStudio](https://posit.co/download/rstudio-desktop/).
8377

@@ -92,8 +86,7 @@ RStudio is available for free download from [Posit RStudio](https://posit.co/dow
9286

9387
### Ubuntu
9488

95-
> These are instructions for Ubuntu **24**.
96-
> If you use other linux distribution, please follow the instructions on [Posit RStudio](https://posit.co/download/rstudio-desktop/).
89+
> These are instructions for Ubuntu **24**. If you use other linux distribution, please follow the instructions on [Posit RStudio](https://posit.co/download/rstudio-desktop/).
9790
9891
Install it via the terminal:
9992

@@ -121,6 +114,7 @@ install.packages("tidyverse")
121114
install.packages("sf")
122115
install.packages("mapview")
123116
install.packages("osmextract")
117+
install.packages("elevatr")
124118
install.packages("stplanr")
125119
install.packages("h3jsr")
126120
install.packages("od")
@@ -130,8 +124,7 @@ install.packages(c("remotes", "devtools", "usethis")) # optional
130124

131125
## r5r
132126

133-
The simplest way to install `r5r` is by running the code below on RStudio Console.
134-
This might take a few minutes if this is the first time you install these packages.
127+
The simplest way to install `r5r` is by running the code below on RStudio Console. This might take a few minutes if this is the first time you install these packages.
135128

136129
```{r}
137130
pkgs = c("r5r", "accessibility", "rJavaEnv", "interp", "quantreg")
@@ -145,9 +138,7 @@ devtools::install_github("ipeaGIT/r5r", subdir = "r-package")
145138

146139
### Java Development Kit
147140

148-
To use the `{r5r}` package (version v2.0 or higher), you will need to have *Java Development Kit (JDK) 21* installed on your computer.
149-
There are numerous open-source JDK implementations.
150-
The easiest way to install JDK is using the new [{rJavaEnv}](https://www.ekotov.pro/rJavaEnv/) package in R.
141+
To use the `{r5r}` package (version v2.0 or higher), you will need to have *Java Development Kit (JDK) 21* installed on your computer. There are numerous open-source JDK implementations. The easiest way to install JDK is using the new [{rJavaEnv}](https://www.ekotov.pro/rJavaEnv/) package in R.
151142

152143
```{r}
153144
# check version of Java currently installed (if any)
@@ -169,7 +160,7 @@ rJavaEnv::java_check_version_rjava()
169160
::: {.panel-tabset .nav-pills}
170161
### Windows and MacOS
171162

172-
Go to [Java Development Kit 21](https://jdk.java.net/archive/) or [Oracle JDK](https://www.oracle.com/java/technologies/javase/jdk21-archive-downloads.html), download the latest 21 build corresponding to your operating system and run the executable (installer) file.
163+
Go to [Java Development Kit 21](https://jdk.java.net/archive/), download the latest 21 build corresponding to your operating system and run the executable file.
173164

174165
### Ubuntu
175166

@@ -181,10 +172,10 @@ java -version
181172
```
182173
:::
183174

184-
### Check r5r installation
175+
<!-- Check if `r5r` is successfully installed and running with no errors: -->
185176

186-
Check if `r5r` is successfully installed and running with no errors:
177+
<!-- ```{r} -->
187178

188-
```{r}
189-
r5r::r5r_sitrep()
190-
```
179+
<!-- r5r::r5r_sitrep() -->
180+
181+
<!-- ``` -->

0 commit comments

Comments
 (0)