You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.qmd
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -108,6 +108,21 @@ This acts exactly like `java_quick_install()`, but only sets the environment var
108
108
109
109
More details are in the vignette [Multiple `Java` environments in one project with `targets` and `callr`](https://www.ekotov.pro/rJavaEnv/articles/multiple-java-with-targets-callr.qmd).
110
110
111
+
## Cleanup
112
+
113
+
If you do not want to use `rJavaEnv` anymore, please clear the cache folders before removing the package:
114
+
115
+
```{r}
116
+
java_clear("project", delete_all = TRUE)
117
+
java_clear("installed", delete_all = TRUE)
118
+
java_clear("distrib", delete_all = TRUE)
119
+
```
120
+
121
+
Also, clear the `.Rprofile` file in the projects there you used the package:
Copy file name to clipboardExpand all lines: vignettes/rJavaEnv.qmd
+23-2Lines changed: 23 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,8 @@ pkgdown:
14
14
as_is: true
15
15
---
16
16
17
-
This guide will walk you through downloading, installing, and managing `Java` environments for your R projects using the `rJavaEnv` package. We'll cover setting up the environment, un-setting it, managing distributions, installing `Java`, and checking `Java` versions.
18
17
18
+
This guide will walk you through downloading, installing, and managing `Java` environments for your R projects using the `rJavaEnv` package. We'll cover setting up the environment, un-setting it, managing distributions, installing `Java`, and checking `Java` versions. For more advanced use refer to the vignettes on [step-by-step fine-grained procedure to download, unpack, install and linke `Java`](rJavaEnv-step-by-step.qmd) and [vignette on using `rJavaEnv` with the `targets` and `callr` packages to manage multiple `Java` environments](multiple-java-with-targets-callr.qmd)
19
19
20
20
### 1. Quickly Download and Install Java
21
21
@@ -142,7 +142,7 @@ Example expected output (on a Windows machine):
142
142
Removed JAVA_HOME settings from .Rprofile in 'C:/Users/user_name/AppData/Local/Temp/75/RtmpuoG3xJ/.Rprofile'
143
143
```
144
144
145
-
Now restart the current `R` session so that `R` picks up the system `Java` (or no `Java`, if it is not installed in the system).
145
+
146
146
147
147
#### Delete `Java` from the project directory
148
148
@@ -158,3 +158,24 @@ Example expected output:
158
158
```
159
159
All Java symlinks in the project have been cleared.
160
160
```
161
+
162
+
Now restart the current `R` session so that `R` picks up the system `Java` (or no `Java`, if it is not installed in the system).
163
+
164
+
### 4. Complete Cleanup
165
+
166
+
If you do not want to use `rJavaEnv` anymore, please clear the cache folders before removing the package:
167
+
168
+
```{r}
169
+
java_clear("project", delete_all = TRUE)
170
+
java_clear("installed", delete_all = TRUE)
171
+
java_clear("distrib", delete_all = TRUE)
172
+
```
173
+
174
+
Also, clear the `.Rprofile` file in the projects there you used the package:
175
+
176
+
```{r}
177
+
java_env_unset()
178
+
```
179
+
180
+
181
+
Now you can remove the package and restart the current `R` session so that `R` picks up the system `Java` (or no `Java`, if it is not installed in the system).
0 commit comments