Skip to content

Commit 90b9264

Browse files
committed
fix oldrel errors on mac
1 parent b9a7afd commit 90b9264

File tree

4 files changed

+28
-15
lines changed

4 files changed

+28
-15
lines changed

vignettes/multiple-java-with-targets-callr.qmd

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
---
22
title: "Multiple `Java` environments in one project with `targets` and `callr`"
3-
output: rmarkdown::html_vignette
43
vignette: >
54
%\VignetteIndexEntry{Multiple `Java` environments in one project with `targets` and `callr`}
65
%\VignetteEngine{quarto::html}
76
%\VignetteEncoding{UTF-8}
87
execute:
98
eval: false
10-
pkgdown:
11-
as_is: true
9+
format:
10+
html:
11+
toc: true
12+
toc-depth: 2
13+
code-overflow: wrap
1214
---
1315

1416
If you need to use multiple `Java` distribution versions in a single project, you can use a handy shortcut function `use_java()` kindly [suggested by Hadley Wickham](https://github.com/e-kotov/rJavaEnv/issues/44){target='_blank'}.

vignettes/rJavaEnv-step-by-step.qmd

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
---
22
title: "Step-by-step: Download, Install, and Setup `Java` for 'R' Projects"
3-
output: rmarkdown::html_vignette
43
vignette: >
54
%\VignetteIndexEntry{Step-by-step: Download, Install, and Setup `Java` for 'R' Projects}
65
%\VignetteEngine{quarto::html}
76
%\VignetteEncoding{UTF-8}
87
execute:
98
eval: false
10-
pkgdown:
11-
as_is: true
9+
format:
10+
html:
11+
toc: true
12+
toc-depth: 2
13+
code-overflow: wrap
1214
---
1315

1416

@@ -32,9 +34,15 @@ setwd(project_dir)
3234
You can specify the cache folder location with the `rJavaEnv.cache_path` option.
3335

3436
```{r}
37+
#| eval: false
3538
options(rJavaEnv.cache_path = "/path/to/your/desired/cache/folder")
3639
```
3740

41+
```{r}
42+
#| include: false
43+
options(rJavaEnv.cache_path = tempdir()) # does that fix the error on r-oldrel-macos-arm64 and r-oldrel-macos-x86_64?
44+
```
45+
3846
By default the location would be set to whichever path is returned by `tools::R_user_dir("rJavaEnv", which = "cache")`. The exact path will depend on the operating system. Our recommendation is to leave this option at it's default setting. This is similar to how `renv` package manages the cache for `R` packages.
3947

4048
You can view the current cache location with:

vignettes/rJavaEnv.qmd

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
---
22
title: "Quick Start Guide: `Java` Setup for 'R' Projects"
3-
output:
4-
rmarkdown::html_vignette:
5-
code-fold: false
6-
code-overflow: wrap
73
vignette: >
84
%\VignetteIndexEntry{Quick Start Guide: `Java` Setup for 'R' Projects}
95
%\VignetteEngine{quarto::html}
106
%\VignetteEncoding{UTF-8}
117
execute:
128
eval: false
13-
pkgdown:
14-
as_is: true
9+
format:
10+
html:
11+
toc: true
12+
toc-depth: 2
13+
code-overflow: wrap
1514
---
1615

1716

@@ -25,13 +24,15 @@ Install `rJavaEnv` from CRAN:
2524

2625

2726
```{r}
27+
#| eval: false
2828
install.packages("rJavaEnv")
2929
```
3030

3131

3232
Or install the latest version of `rJavaEnv` from R universe:
3333

3434
```{r}
35+
#| eval: false
3536
install.packages('rJavaEnv',
3637
repos = c('https://e-kotov.r-universe.dev', 'https://cloud.r-project.org')
3738
)

vignettes/why-rJavaEnv.qmd

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
---
22
title: "Why rJavaEnv: the landscape of 'Java'-dependent R packages"
3-
output: rmarkdown::html_vignette
43
vignette: >
54
%\VignetteIndexEntry{Why rJavaEnv: the landscape of 'Java'-dependent R packages}
65
%\VignetteEngine{quarto::html}
76
%\VignetteEncoding{UTF-8}
87
bibliography: [bibliography.bib]
9-
pkgdown:
10-
as_is: true
8+
format:
9+
html:
10+
toc: true
11+
toc-depth: 2
12+
code-overflow: wrap
1113
---
1214

1315

0 commit comments

Comments
 (0)