Skip to content

Commit eac3c36

Browse files
committed
docs: 📝 added code to list needed version in install template
1 parent a76b91a commit eac3c36

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

inst/common/installing-programs.md

+19-18
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ them.
77
### Windows
88

99
1. [R](https://cloud.r-project.org/bin/windows/base/): Any version
10-
above `4.1.2`. If you have used R before, you can confirm the
11-
version by running `R.version.string` in the Console.
10+
above `r min(r3admin::get_allowed_r_versions())`. If you have used R
11+
before, you can confirm the version by running `R.version.string` in
12+
the Console.
1213
2. [RStudio](https://www.rstudio.com/products/rstudio/download/#download):
13-
Any version above `2023.06.2`. If you have installed it before,
14-
check the current version by going to the menu
15-
`Help -> About RStudio`.
14+
Any version above `r r3admin::get_allowed_rstudio_versions()[1]`. If
15+
you have installed it before, check the current version by going to
16+
the menu `Help -> About RStudio`.
1617
3. [Git](https://git-scm.com/download/win): Select the "Click here to
1718
download" link. Git is used throughout many sessions in the courses.
1819
When installing, it will ask for a selecting a "Text Editor" and
@@ -25,19 +26,19 @@ them.
2526
### MacOS
2627

2728
1. [R](https://cloud.r-project.org/bin/macosx/): Any version above
28-
`4.1.2`. If you have used R before, you can confirm the version by
29-
running `R.version.string` in the Console. If you use
30-
[Homebrew](https://brew.sh/), installing R is as easy as opening a
31-
Terminal and running:
29+
`r min(r3admin::get_allowed_r_versions())`. If you have used R
30+
before, you can confirm the version by running `R.version.string` in
31+
the Console. If you use [Homebrew](https://brew.sh/), installing R
32+
is as easy as opening a Terminal and running:
3233

3334
``` bash
3435
brew install --cask r
3536
```
3637

3738
2. [RStudio](https://www.rstudio.com/products/rstudio/download/#download):
38-
Any version above `2023.06.2`. If you have installed it before,
39-
check the current version by going to the menu
40-
`Help -> About RStudio`. With Homebrew:
39+
Any version above `r r3admin::get_allowed_rstudio_versions()[1]`. If
40+
you have installed it before, check the current version by going to
41+
the menu `Help -> About RStudio`. With Homebrew:
4142
4243
``` bash
4344
brew install --cask rstudio
@@ -53,17 +54,18 @@ them.
5354
### Linux (Ubuntu)
5455

5556
1. [R](https://cloud.r-project.org/bin/linux/ubuntu/): Any version
56-
above `4.1.2`. If you have used R before, you can confirm the
57-
version by running `R.version.string` in the Console.
57+
above `r min(r3admin::get_allowed_r_versions())`. If you have used R
58+
before, you can confirm the version by running `R.version.string` in
59+
the Console.
5860
5961
``` bash
6062
sudo apt -y install r-base
6163
```
6264

6365
2. [RStudio](https://www.rstudio.com/products/rstudio/download/#download):
64-
Any version above `2023.06.2`. If you have installed it before,
65-
check the current version by going to the menu
66-
`Help -> About RStudio`.
66+
Any version above `r r3admin::get_allowed_rstudio_versions()[1]`. If
67+
you have installed it before, check the current version by going to
68+
the menu `Help -> About RStudio`.
6769
6870
3. [Git](https://git-scm.com/download/mac): Git is used throughout many
6971
sessions in the courses.
@@ -120,4 +122,3 @@ technical issues, you can use Posit Cloud (to use RStudio on the cloud)
120122
as a final solution in order to participate in the course. For help
121123
setting up Posit Cloud for this course, refer to the [Posit Cloud setup
122124
guide](https://guides.rostools.org/posit-cloud).
123-

0 commit comments

Comments
 (0)