Skip to contents

Launches a local Shiny app on 127.0.0.1 (loopback only – fully offline) and opens it in the RStudio Viewer pane when running inside RStudio. The layout shows all panes at once: document tree, code system, document browser (mark text with the mouse, then click a code button or the memo button to store the coding at the exact character offsets), retrieved segments per selected code, and the memo panel.

Usage

qda_app(
  host = "127.0.0.1",
  port = NULL,
  open = TRUE,
  new_window = TRUE,
  lang = NULL
)

Arguments

host

Host to bind; loopback only, default "127.0.0.1".

port

Port; NULL picks a random free port.

open

Logical; open the app at all.

new_window

Logical; open the app in a new browser window (default, recommended – the RStudio Viewer pane is small). With new_window = FALSE it opens inside the RStudio Viewer pane instead.

lang

User interface language, "en" or "de". NULL (default) uses qda_language() (option jellyqda.lang or the system locale). The language can also be switched in the app (EN/DE button).

Value

Invisibly NULL (after the app is stopped).

Details

The call blocks the console while the app runs (press Esc to stop), like any Shiny app. Open the printed URL in additional browser windows/tabs for a multi-window setup – all windows share the same session and project.

Requires the suggested packages shiny, bslib and fontawesome (install once; runtime needs no internet).

Examples

if (interactive()) {
  qda_open(file.path(tempfile(), "example.jellyqda"))
  qda_app()                    # new browser window; Esc stops the app
  qda_app(lang = "de")         # German user interface
  qda_app(new_window = FALSE)  # inside the RStudio Viewer pane
}