Repository navigation
Expand file tree
/
Copy pathdownload.qmd
More file actions
304 lines (245 loc) · 12.5 KB
/
Copy pathdownload.qmd
File metadata and controls
304 lines (245 loc) · 12.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
---
title: "Download Positron"
description: "Download and install Positron for Windows, macOS, or Linux. Free data science IDE for Python, R, SQL, and more, with prerequisites, setup instructions, and automatic updates."
format:
html:
include-in-header:
- '_download.html'
aliases:
- install.html
- start.html
---
```{r}
#| echo: false
#| warning: false
library(purrr)
library(glue)
library(httr)
library(jsonlite)
# Read release version from _environment
release_version <- Sys.getenv("RELEASE_VERSION")
# Create URLs
cdn_url <- "https://cdn.posit.co/positron/releases/" # Keep this in sync with cdnUrl in _download.html
#######################################################################################
# NOTE: please also check _download.html when updating the various URLs, to ensure that
# we are constructing these URLs consistently in both places.
#######################################################################################
windows_system_x64 <- glue("Positron-{release_version}-Setup-x64.exe")
windows_user_x64 <- glue("Positron-{release_version}-UserSetup-x64.exe")
windows_system_arm64 <- glue("Positron-{release_version}-Setup-arm64.exe")
windows_user_arm64 <- glue("Positron-{release_version}-UserSetup-arm64.exe")
macos_arm64 <- glue("Positron-{release_version}-arm64.dmg")
macos_x64 <- glue("Positron-{release_version}-x64.dmg")
debian_x64 <- glue("Positron-{release_version}-x64.deb")
debian_arm <- glue("Positron-{release_version}-arm64.deb")
redhat_x64 <- glue("Positron-{release_version}-x64.rpm")
redhat_arm <- glue("Positron-{release_version}-arm64.rpm")
urls <- list(
win_sys_x64 = glue("{cdn_url}win/x86_64/{windows_system_x64}"),
win_user_x64 = glue("{cdn_url}win/x86_64/{windows_user_x64}"),
win_sys_arm64 = glue("{cdn_url}win/arm64/{windows_system_arm64}"),
win_user_arm64 = glue("{cdn_url}win/arm64/{windows_user_arm64}"),
mac_arm64 = glue("{cdn_url}mac/arm64/{macos_arm64}"),
mac_x64 = glue("{cdn_url}mac/x64/{macos_x64}"),
deb_x64 = glue("{cdn_url}deb/x86_64/{debian_x64}"),
deb_arm64 = glue("{cdn_url}deb/arm64/{debian_arm}"),
rpm_x64 = glue("{cdn_url}rpm/x86_64/{redhat_x64}"),
rpm_arm64 = glue("{cdn_url}rpm/arm64/{redhat_arm}")
)
# Get checksums
checksum_data <- rlang::try_fetch(
fromJSON(glue("{cdn_url}checksums/positron-{release_version}-checksums.json")),
error = function(cnd) list(),
warning = function(cnd) list()
)
all_installers <- list(
windows_system_x64,
windows_user_x64,
windows_system_arm64,
windows_user_arm64,
macos_arm64,
macos_x64,
debian_x64,
debian_arm,
redhat_x64,
redhat_arm
)
checksums <- map_chr(all_installers, ~ pluck(checksum_data, .))
# Get file sizes
cloudfront_headers <- map(urls, HEAD) |> map(headers)
file_sizes <- map(cloudfront_headers, "content-length") |>
map(fs::fs_bytes) |>
map_chr(as.character)
# Build download link HTML (avoids markdown escaping of URLs)
dl <- list(
mac_arm64 = glue('<a href="{urls$mac_arm64}" class="download-link"><i class="fa-solid fa-download" aria-hidden="true"></i> {file_sizes[5]}</a>'),
mac_x64 = glue('<a href="{urls$mac_x64}" class="download-link"><i class="fa-solid fa-download" aria-hidden="true"></i> {file_sizes[6]}</a>'),
win_user_x64 = glue('<a href="{urls$win_user_x64}" class="download-link"><i class="fa-solid fa-download" aria-hidden="true"></i> {file_sizes[2]}</a>'),
win_sys_x64 = glue('<a href="{urls$win_sys_x64}" class="download-link"><i class="fa-solid fa-download" aria-hidden="true"></i> {file_sizes[1]}</a>'),
win_user_arm64 = glue('<a href="{urls$win_user_arm64}" class="download-link"><i class="fa-solid fa-download" aria-hidden="true"></i> {file_sizes[4]}</a>'),
win_sys_arm64 = glue('<a href="{urls$win_sys_arm64}" class="download-link"><i class="fa-solid fa-download" aria-hidden="true"></i> {file_sizes[3]}</a>'),
deb_x64 = glue('<a href="{urls$deb_x64}" class="download-link"><i class="fa-solid fa-download" aria-hidden="true"></i> {file_sizes[7]}</a>'),
deb_arm64 = glue('<a href="{urls$deb_arm64}" class="download-link"><i class="fa-solid fa-download" aria-hidden="true"></i> {file_sizes[8]}</a>'),
rpm_x64 = glue('<a href="{urls$rpm_x64}" class="download-link"><i class="fa-solid fa-download" aria-hidden="true"></i> {file_sizes[9]}</a>'),
rpm_arm64 = glue('<a href="{urls$rpm_arm64}" class="download-link"><i class="fa-solid fa-download" aria-hidden="true"></i> {file_sizes[10]}</a>')
)
```
Download the desktop installer for your platform. Most systems need nothing else, but you can check the [prerequisites](#prerequisites) to be sure.
::: {#download-hero .download-hero data-version="`{r} release_version`"}
### [Recommended for you]{#hero-title}
[Detecting your operating system...]{#hero-subtitle .hero-subtitle}
::: {#hero-buttons}
:::
<p class="hero-legal">By downloading and using Positron, you agree to the Positron <a href="licensing.html">license agreement</a> and <a href="https://posit.co/about/privacy-policy/">privacy policy</a>.</p>
:::
## All platforms
<p class="hero-legal">By downloading and using Positron, you agree to the Positron <a href="licensing.html">license agreement</a> and <a href="https://posit.co/about/privacy-policy/">privacy policy</a>.</p>
```{r}
#| echo: false
#| results: asis
cat('<div class="download-cards">
<div id="card-macos" class="download-card">
<h4><i class="fa-brands fa-apple" aria-hidden="true"></i> macOS <span class="option-meta">11.0+</span></h4>
<div class="download-option">
<div class="option-label">Apple Silicon<br><span class="option-meta">(M-series)</span></div>
', dl$mac_arm64, '
</div>
<div class="download-option">
<div class="option-label">Intel</div>
', dl$mac_x64, '
</div>
</div>
<div id="card-windows" class="download-card">
<h4><i class="fa-brands fa-windows" aria-hidden="true"></i> Windows</h4>
<div class="download-group">
<p><strong>x64</strong> <span class="option-meta">(Windows 10+)</span></p>
<div class="download-option">
<div class="option-label">User install</div>
', dl$win_user_x64, '
</div>
<div class="download-option">
<div class="option-label">System install</div>
', dl$win_sys_x64, '
</div>
</div>
<div class="download-group">
<p><strong>ARM64</strong> <span class="option-meta">(Windows 11)</span></p>
<div class="download-option">
<div class="option-label">User install</div>
', dl$win_user_arm64, '
</div>
<div class="download-option">
<div class="option-label">System install</div>
', dl$win_sys_arm64, '
</div>
</div>
</div>
<div id="card-linux" class="download-card">
<h4><i class="fa-brands fa-linux" aria-hidden="true"></i> Linux</h4>
<div class="download-group">
<p><strong>x64</strong></p>
<div class="download-option">
<div class="option-label">.deb <span class="option-meta">(Ubuntu, Debian)</span></div>
', dl$deb_x64, '
</div>
<div class="download-option">
<div class="option-label">.rpm <span class="option-meta">(Red Hat, Fedora)</span></div>
', dl$rpm_x64, '
</div>
</div>
<div class="download-group">
<p><strong>ARM64</strong></p>
<div class="download-option">
<div class="option-label">.deb <span class="option-meta">(Ubuntu, Debian)</span></div>
', dl$deb_arm64, '
</div>
<div class="download-option">
<div class="option-label">.rpm <span class="option-meta">(Red Hat, Fedora)</span></div>
', dl$rpm_arm64, '
</div>
</div>
</div>
</div>')
```
<details class="checksums-section">
<summary>SHA-256 checksums</summary>
```{r}
#| echo: false
#| warning: false
checksum_table <- data.frame(
Platform = c(
"Windows 10, 11 x64 (system level install)",
"Windows 10, 11 x64 (user level install)",
"Windows 11 arm64 (system level install)",
"Windows 11 arm64 (user level install)",
"MacOS 11.0+ (arm64/Apple Silicon)",
"MacOS 11.0+ (x64/Intel)",
"Debian-based Linux x64 (Ubuntu 20+)",
"Debian-based Linux arm64 (Ubuntu 20+)",
"Red Hat-based Linux x64 (RHEL9)",
"Red Hat-based Linux arm64 (RHEL9)"
),
Installer = c(
glue('<a href="{urls$win_sys_x64}">{windows_system_x64}</a>'),
glue('<a href="{urls$win_user_x64}">{windows_user_x64}</a>'),
glue('<a href="{urls$win_sys_arm64}">{windows_system_arm64}</a>'),
glue('<a href="{urls$win_user_arm64}">{windows_user_arm64}</a>'),
glue('<a href="{urls$mac_arm64}">{macos_arm64}</a>'),
glue('<a href="{urls$mac_x64}">{macos_x64}</a>'),
glue('<a href="{urls$deb_x64}">{debian_x64}</a>'),
glue('<a href="{urls$deb_arm64}">{debian_arm}</a>'),
glue('<a href="{urls$rpm_x64}">{redhat_x64}</a>'),
glue('<a href="{urls$rpm_arm64}">{redhat_arm}</a>')
),
Size = unname(file_sizes),
check.names = FALSE
)
# `checksums` and `file_sizes` follow the same order as the rows above.
checksums_display <- substr(checksums, 1, 7)
checksum_table$`SHA-256` <- glue(
'<span class="checksum" onclick="copyChecksum(\'{checksums}\', this)" title="Click to copy full checksum">{checksums_display}</span>'
)
knitr::kable(checksum_table, format = "html", escape = FALSE, row.names = FALSE)
```
</details>
## Prerequisites
In most cases, Positron is ready to go as soon as it is installed. Check the section for your platform or language to see if you need anything more.
### Windows setup
If you're using Windows, make sure you have the [latest Visual C++ Redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-microsoft-visual-c-redistributable-version) installed.
### Optional language setup
Positron runs without any programming language installed. If you plan to use R or Python, follow these steps to get your environment working.
::: {.panel-tabset}
### Python
Positron works with [actively supported versions](https://devguide.python.org/versions/#versions) of Python.
If you do not have a valid Python version available, Positron [can install one for you](python-installations.qmd#automatic-uv-installation).
If you prefer to use an existing environment, Positron supports the following Python environment managers:
{{< include "_python-managers.qmd" >}}
Other tools might also be compatible, even if Positron does not officially support them. For the full list of requirements, see [Python environment qualifications](python-installations.qmd).
### R
Ensure you have R 4.2 or higher installed. To install R, follow the [instructions for your operating system](https://cloud.r-project.org/).
Alternatively, if you'd like to have multiple R installations, [rig](https://github.com/r-lib/rig) is a great tool to manage this which works well with Positron.
If you're an R package developer, you will also want to make sure that you have the current versions of certain R packages, all of which had recent updates to make them work more smoothly in Positron. Run one of the code snippets below to ensure that you are up-to-date:
``` r
# if you're a pak person (we are!)
pak::pak(c("usethis", "cli", "crayon", "rlang", "roxygen2", "pkgload"))
# or using base R
install.packages(c("usethis", "cli", "crayon", "rlang", "roxygen2", "pkgload"))
```
::: callout-note
If you're a Windows user, note that Positron doesn't bundle [Rtools](https://cran.r-project.org/bin/windows/Rtools/). If you need Rtools for your package development or other work, you can either use the official guidance from CRAN on installing Rtools and putting it on the PATH, or alternatively, use [rig](https://github.com/r-lib/rig) to install and set up Rtools:
```bash
rig system rtools add
```
:::
:::
## Staying up to date
Once you install Positron, it will [automatically check for updates moving forward](updating.qmd).
::: {.callout-note}
## Stay in the loop
Want to be notified about upcoming releases, new features, and community events? [Sign up for Positron updates](https://posit.co/positron-updates-signup/).
:::
## Positron Pro
### Positron Pro on Posit Workbench
[Workbench](https://posit.co/products/enterprise/workbench/) includes support for Positron Pro. To configure and use Positron Pro on Workbench, please see the [Positron Pro administration guide](https://docs.posit.co/ide/server-pro/admin/positron_sessions/) and the [Positron Pro user guide](https://docs.posit.co/ide/server-pro/user/positron/getting-started/).
### Positron Pro on Amazon SageMaker
Positron Pro is also available on Amazon SageMaker (in public preview) as a custom Docker image. The image includes R, Python environment management via uv, Quarto, Posit Assistant backed by Amazon Bedrock, and professional ODBC drivers from Posit. Running Positron on SageMaker requires a Workbench Advanced license through AWS License Manager. To get started, see the [Positron on Amazon SageMaker administration guide](https://docs.posit.co/partnerships/aws-sagemaker/positron/admin.html) and [user guide](https://docs.posit.co/partnerships/aws-sagemaker/positron/user.html).