Skip to content

Commit

Permalink
remove 3.6.1 alignment case
Browse files Browse the repository at this point in the history
  • Loading branch information
spoltier committed Jun 19, 2024
1 parent a1fef69 commit 56763e4
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions version-stable-r-development.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -207,40 +207,6 @@ tinytex::tlmgr_install("pdfcrop")
(see [R Markdown: The Definitive
Guide](https://bookdown.org/yihui/rmarkdown/pdf-document.html#figure-options-1))

#### Align TinyTeX to current remote repo

**NOTE** - This should never be needed with recent `rocker/verse` images, where
a version-stable Tex Live repository is used for the TinyTeX install (see
[rocker-org/rocker-versioned#169](https://github.com/rocker-org/rocker-versioned/issues/169)).

If you are using LaTeX and start seeing errors like
```
Remote repository is newer than local (2018 < 2019)
```
you have to re-install TinyTeX. This happens e.g. with
`rocker/verse:3.6.1`, since it was build at the end of 2018 but the current
Tex Live repo is 2019. You can fix this via a **user-specific** re-installation of
TinyTeX for R. **NOTE** however that this will uninstall the system-level
TinyTeX pre-installed in `rocker/verse`.

First, make sure `/home/rstudio/bin` is part of the `PATH` environment variable.
Check this by running
```{bash check-path}
docker exec --user rstudio rstudio_3.6.1 R --slave -e 'Sys.getenv("PATH")'
```
If you don't see `/home/rstudio/bin`, you can make sure it is part of the `PATH` for R via
```{bash set-path}
docker exec --user rstudio rstudio_3.6.1 sh -c 'echo "PATH=$HOME/bin:\${PATH}" >> $HOME/.Renviron'
# check again
docker exec --user rstudio rstudio_3.6.1 R --slave -e 'Sys.getenv("PATH")'
```

Then, from the running RStudio, run
```{r reinstall-tinytex}
tinytex::reinstall_tinytex()
```


### Cleanup

```{bash cleanup}
Expand Down

0 comments on commit 56763e4

Please sign in to comment.