Skip to content

Commit

Permalink
june 7 2024 updates (#24)
Browse files Browse the repository at this point in the history
* remove github pat from renviron, collapse user and project exmaples

closes #15

* fix missing parens

closes #22

* use 3.6 as example

closes #18

* v1.5 in CI, closes #17

* update notes on rig, closess #23
  • Loading branch information
edavidaja authored Jun 22, 2024
1 parent c1c692d commit 41c7ee5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 24 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: pre-release

- name: Publish to GitHub Pages (and render)
uses: quarto-dev/quarto-actions/publish@v2
Expand Down
34 changes: 10 additions & 24 deletions index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -215,20 +215,10 @@ environment variables

## example `.Renviron`

### user

``` bash
PATH="${RTOOLS40_HOME}\usr\bin;${PATH}" # windows users
GITHUB_PAT=ghp_gVa6xK3bwERJ7xpWvoWj2dXMit4z43fWE8R
CONNECT_API_KEY=DaYK2hBUriSBYUEGIAiyXsRJHSjTYJN3
R_HISTSIZE=100000
```

<br/>

### project

``` bash
RETICULATE_PYTHON=.venv/bin/python
DB_USER=elephant
DB_PASS=p0stgr3s
Expand Down Expand Up @@ -269,7 +259,7 @@ what's the value of `WTF_USER` after you set `WTF_PROJECT`?

## `.Renviron` recap

project `.Renviron` "short-circuits"\
project `.Renviron` "short-circuits"
if it exists, your user `.Renviron` will not be evaluated

## `.Rprofile`
Expand Down Expand Up @@ -613,7 +603,7 @@ Moving fs [1.5.2] into the cache ...
## pop quiz, hotshot

::: question
Does Posit Package Manager serve a binary of `dplyr` for R 3.4?
Does Posit Package Manager serve a binary of `dplyr` for R 3.6?
:::

{{< countdown "2:00" >}}
Expand Down Expand Up @@ -1051,7 +1041,7 @@ or [`install.packages()`](https://rstudio.github.io/renv/articles/renv.html#shim
``` r
renv::install("jsonlite")
renv::install("[email protected]") # at version
renv::install"jeroen/jsonlite") # latest
renv::install("jeroen/jsonlite") # latest
renv::install"jeroen/jsonlite@80854359976250f30a86a6992c0d8c3b3d95473d") # at SHA
renv::install("path/to/package") # local source
```
Expand Down Expand Up @@ -1148,7 +1138,7 @@ You want to avoid having the language version your projects are using changed ou

## language managers

using your package manager, install a language manager
using your package manager, install [rig](https://github.com/r-lib/rig):

::: panel-tabset
### windows
Expand All @@ -1167,9 +1157,11 @@ brew install rig
::: small
language managers for other languages:

{{< fa brands python >}} pyenv
{{< fa brands node-js >}} nvm
{{< fa brands rust >}} rustup
{{< fa brands python >}} [pyenv](https://github.com/pyenv/pyenv)
{{< fa brands node-js >}} [nvm](https://github.com/nvm-sh/nvm)
{{< fa brands rust >}} [rustup](https://rustup.rs/)
{{< fa globe >}} [asdf](https://asdf-vm.com/)
{{< fa globe >}} [mise-en-place](https://mise.jdx.dev/)
:::

::: notes
Expand All @@ -1190,15 +1182,9 @@ language managers for other languages:
![](img/r_version_select_windows-highlight.png)
:::

## switching R versions {{< fa brands apple >}}

::: r-fit-text
[RSwitch](https://rud.is/rswitch/)
:::

## language versions

using your language manager, install a language version:
using `rig`, install a version of R:

``` shell
❯ rig install --help
Expand Down

0 comments on commit 41c7ee5

Please sign in to comment.