Skip to content

Commit 0ba7880

Browse files
committed
add tab feature for build tools
1 parent f959a98 commit 0ba7880

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

learners/setup.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -129,21 +129,37 @@ We expect a message like the one below:
129129
Your system is ready to build packages!
130130
```
131131

132-
If the build tools are not available, this will trigger an automated install.
132+
If the build tools are not available, this will trigger an automated install.
133+
133134
Wait until to get the expected output message.
134-
We suggest to restart your R session or close and open back again RStudio to let it recognize this new installation.
135+
We recommend restarting your R session, or closing and reopening RStudio, so that it can recognize the new installation.
135136

136-
::::::::::::::::::::::::::::: spoiler
137+
If the automatic installation does not work, you can manually install them according to your operating system.
138+
139+
::::::::::::::::::::::::::::: tab
137140

138-
### What to do if this step does not work?
141+
### Windows
139142

140-
Windows users will need a working installation of `Rtools` in order to build the package from source. `Rtools` is not an R package, but a software you need to download and install. We suggest you to follow:
143+
Windows users will need a working installation of `Rtools` in order to build the package from source.
144+
`Rtools` is not an R package, but a software you need to download and install.
145+
We suggest you to follow:
141146

142147
- **Install `Rtools`**. Download the `Rtools` installer from <https://cran.r-project.org/bin/windows/Rtools/>. Install with default selections.
143-
- Close and open back again RStudio to let it recognize this new installation.
148+
- Close and reopen RStudio so it can recognize the new installation.
144149

145-
:::::::::::::::::::::::::::::
150+
### Mac
151+
152+
Mac users require three steps as detailed in <https://github.com/stan-dev/rstan/wiki/Configuring-C---Toolchain-for-Mac>:
146153

154+
- Install R version 4.0.0 or later
155+
- Use `macrtools` to setup the C++ toolchain
156+
- Enable some compiler optimizations.
157+
158+
### Linux
159+
160+
Linux users require specific details per distribution. Find them in <https://github.com/stan-dev/rstan/wiki/Configuring-C-Toolchain-for-Linux>.
161+
162+
:::::::::::::::::::::::::::::
147163

148164
### 3. Install the required R packages
149165

@@ -157,7 +173,7 @@ Open RStudio and **copy and paste** the following code chunk into the [console w
157173
if(!require("pak")) install.packages("pak")
158174

159175
new_packages <- c(
160-
# for Introduction tutorial
176+
# for Introduction tutorials
161177
"here",
162178
"tidyverse",
163179
"visdat",

0 commit comments

Comments
 (0)