|
10 | 10 | #' file that contains at least `tag` (and optionally `marginal`, `path_most_likely`, |
11 | 11 | #' `pressurepath`, `pressurepath_most_likely`). |
12 | 12 | #' |
13 | | -#' You can retrieve the edited path from the return value of this function (when `run_bg = FALSE`) |
14 | | -#' or with `shiny::getShinyOption("path_geopressureviz")` after the app completes. |
| 13 | +#' When `run_bg = FALSE`, the app stores the current edited path in the Shiny option |
| 14 | +#' `path_geopressureviz` and returns it invisibly when the app closes. You can capture it from the |
| 15 | +#' return value of this function or retrieve it afterwards in the same R session with |
| 16 | +#' `shiny::getShinyOption("path_geopressureviz")`. |
| 17 | +#' |
| 18 | +#' When `run_bg = TRUE`, the function returns the background process object instead of the edited |
| 19 | +#' path. |
| 20 | +#' |
| 21 | +#' The app `Save` button writes the current path to `./data/interim/{id}-path-geopressureviz.csv`. |
15 | 22 | #' |
16 | 23 | #' Learn more about GeoPressureViz in the [GeoPressureManual |
17 | 24 | #' ](https://geopressure.org/GeoPressureManual/geopressureviz.html). |
|
31 | 38 | #' Rstudio. |
32 | 39 | #' @param run_bg If true, the app runs in a background R session using the `callr` package. This |
33 | 40 | #' allows you to continue using your R session while the app is running. |
34 | | -#' @return When `run_bg = FALSE`: The updated path visualized in the app. Can also be retrieved with |
35 | | -#' `shiny::getShinyOption("path_geopressureviz")` after the app completes. |
36 | | -#' When `run_bg = TRUE`: Returns the background process object. |
| 41 | +#' @return When `run_bg = FALSE`: The edited path, returned invisibly when the app closes. During |
| 42 | +#' the app session, the current path is also stored in the Shiny option |
| 43 | +#' `shiny::getShinyOption("path_geopressureviz")`, which can be read afterwards in the same R |
| 44 | +#' session. |
| 45 | +#' When `run_bg = TRUE`: The background process object. In this case the edited path is not |
| 46 | +#' returned to the calling console session. |
37 | 47 | #' @examplesIf FALSE |
38 | 48 | #' geopressureviz("18LX") |
39 | 49 | #' @seealso [GeoPressureManual |
|
0 commit comments