You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the build tools are not available, this will trigger an automated install.
118
+
119
+
1. Run the command in the console.
120
+
2. Don’t interrupt it—wait until R prints the confirmation message.
121
+
3. Once that’s done, restart your R session (or just restart RStudio) to ensure the changes take effect.
122
+
123
+
If the automatic installation **does not** work, you can manually install them according to your operating system.
124
+
125
+
::::::::::::::::::::::::::::: tab
126
+
127
+
### Windows
128
+
129
+
Windows users will need a working installation of `Rtools` in order to build the package from source.
130
+
`Rtools` is not an R package, but a software you need to download and install.
131
+
We suggest you to follow:
132
+
133
+
-**Install `Rtools`**. Download the `Rtools` installer from <https://cran.r-project.org/bin/windows/Rtools/>. Install with default selections.
134
+
- Close and reopen RStudio so it can recognize the new installation.
135
+
136
+
### Mac
137
+
138
+
Mac users require two additional steps as detailed in this [guide to Configuring C Toolchain for Mac](https://github.com/stan-dev/rstan/wiki/Configuring-C---Toolchain-for-Mac):
139
+
140
+
- Install and use [`macrtools`](https://mac.thecoatlessprofessor.com/macrtools/) to setup the C++ toolchain
141
+
- Enable some compiler optimizations.
142
+
143
+
### Linux
144
+
145
+
Linux users require specific details per distribution. Find them in this [guide to Configuring C Toolchain for Linux](https://github.com/stan-dev/rstan/wiki/Configuring-C-Toolchain-for-Linux).
146
+
147
+
:::::::::::::::::::::::::::::
148
+
149
+
::::::::::::: callout
150
+
151
+
### Environment Check
152
+
153
+
This step requires administrator privileges to install software.
154
+
155
+
If you do not have admin rights in your current environment:
156
+
157
+
- Try running the tutorial on your **personal machine** where you have full access.
158
+
- Use a **preconfigured development environment** (e.g. [Posit Cloud](https://posit.cloud/)).
159
+
- Ask your **system administrator** to install the required software for you.
160
+
161
+
:::::::::::::
162
+
163
+
### 3. Install the required R packages
100
164
101
165
<!--
102
166
During the tutorial, we will need a number of R packages. Packages contain useful R code written by other people. We will use packages from the [Epiverse-TRACE](https://epiverse-trace.github.io/).
@@ -128,12 +192,14 @@ These installation steps could ask you `? Do you want to continue (Y/n)` write `
128
192
If you get an error message when installing {epidemics}, try this alternative code:
### Do you need a GitHub Personal access token (PAT)?
137
203
138
204
If the error message keyword include an string like `Personal access token (PAT)`, you may need to [set up your GitHub token](https://epiverse-trace.github.io/git-rstudio-basics/02-setup.html#set-up-your-github-token).
If the error persist, [contact us](#your-questions)!
174
239
175
-
:::::::::::::::::::::::::::::
240
+
:::::::::::::::::::::::::::
176
241
177
242
You should update **all of the packages** required for the tutorial, even if you installed them relatively recently. New versions bring improvements and important bug fixes.
178
243
244
+
### 4. Verify the installation
245
+
179
246
When the installation has finished, you can try to load the packages by pasting the following code into the console:
0 commit comments