find_bundled_rscript: Locate Rscript inside a bundled portable-R runtime directory

View source: R/utils.R

find_bundled_rscriptR Documentation

Locate Rscript inside a bundled portable-R runtime directory

Description

The portable-r distribution extracts to a subdirectory named ⁠portable-r-<version>-<os>-<arch>/⁠. Rscript lives at ⁠<subdir>/bin/Rscript[.exe]⁠. Searches for that layout first, then falls back to a flat layout in case a future portable build drops the subdir.

Usage

find_bundled_rscript(runtime_dir)

Arguments

runtime_dir

Character path to runtime/R inside the Electron app.

Value

Character path to Rscript, or NULL if not found.


shinyelectron documentation built on Dec. 3, 2026, 9:07 a.m.