Skip to contents

Launches a Shiny application to manage the data extraction phase. It helps identify studies pending extraction, generate prompts, optionally run LLM extraction, allow manual JSON input/editing, and save results to the cache.

Usage

df_shiny_extract(launch.browser = TRUE, ...)

Arguments

launch.browser

Logical, passed to shiny::runApp. Whether to launch the app in the default browser.

...

Additional arguments passed to shiny::runApp (e.g., port, host).

Value

Does not return a value; runs the Shiny application.

Details

Before running the app:

  • Ensure metawoRld and DataFindR packages are installed and accessible.

  • Ensure the target metawoRld project directory exists and contains a valid _metawoRld.yml.

  • Ensure assessment results exist in the project's cache (.metawoRld_cache/datafindr/assessment/).

  • If triggering API calls, ensure the relevant API key (e.g., OPENAI_API_KEY) is set in your environment.

  • For LLM extraction, you currently need to provide a path to a plain text file containing the full paper content. PDF processing within the app is not yet implemented.

  • The rclipboard package is needed for the 'Copy Prompt' button.