Skip to content

Commit d75eb92

Browse files
committed
update readme
1 parent d4fd03a commit d75eb92

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,13 @@ in progress).
227227
## Limitations
228228

229229
Currently, `rJavaEnv` only supports major `Java` versions such as 8, 11,
230-
17, 21, 22. The download and install functions ignore the minor version
231-
of the `Java` distribution and just downloads the latest stable
232-
subversion of the specified major version. This is done to simplify the
233-
process and avoid the need to update the package every time a new minor
234-
version of `Java` is released. For most users this should be sufficient,
235-
but this is substandard for full reproducibility.
230+
15 to 24 and any newer version. The download and install functions
231+
ignore the minor version of the `Java` distribution and just downloads
232+
the latest stable subversion of the specified major version. This is
233+
done to simplify the process and avoid the need to update the package
234+
every time a new minor version of `Java` is released. For most users
235+
this should be sufficient, but this is substandard for full
236+
reproducibility.
236237

237238
The main limitation is that if you want to switch to another `Java`
238239
environment, you will most likely have to restart the current R session

README.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ For detailed usage, see the [Quick Start Vignette](https://www.ekotov.pro/rJavaE
180180

181181
## Limitations
182182

183-
Currently, `rJavaEnv` only supports major `Java` versions such as 8, 11, 17, 21, 22. The download and install functions ignore the minor version of the `Java` distribution and just downloads the latest stable subversion of the specified major version. This is done to simplify the process and avoid the need to update the package every time a new minor version of `Java` is released. For most users this should be sufficient, but this is substandard for full reproducibility.
183+
Currently, `rJavaEnv` only supports major `Java` versions such as 8, 11, 15 to 24 and any newer version. The download and install functions ignore the minor version of the `Java` distribution and just downloads the latest stable subversion of the specified major version. This is done to simplify the process and avoid the need to update the package every time a new minor version of `Java` is released. For most users this should be sufficient, but this is substandard for full reproducibility.
184184

185185
The main limitation is that if you want to switch to another `Java` environment, you will most likely have to restart the current R session and set the `JAVA_HOME` and `PATH` environment variables to the desired `Java` environment using `rJavaEnv::java_env_set()`. This cannot be done dynamically within the same R session due to the way Java is initialized in R, particularly with the `rJava`-dependent packages such as [`r5r`](https://github.com/ipeaGIT/r5r){target="_blank"}. With packages like [`opentripplanner`](https://github.com/ropensci/opentripplanner){target="_blank"}, that performs `Java` calls using command line, you can switch `Java` environments dynamically within the same R session as much as you want.
186186

0 commit comments

Comments
 (0)