Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_system

Determine the appropriate GUI to instantiate


Description

The native version of the dialog box displays different versions depending on the OS (Linux, Windows or MacOS). In the case of 'RStudio', its own dialog boxes are used, if they exist. However, in 'RStudio Desktop' only, and when the argument rstudio = FALSE is set, OS dialog boxes may be forced, and the function would return the OS instead of RStudio.

Usage

get_system(rstudio = getOption("svDialogs.rstudio", TRUE))

Arguments

rstudio

Logical. Should 'RStudio' dialog boxes automatically be used if available? If FALSE, force using OS dialog boxes, but only in 'RStudio Desktop' (ignored in 'RStudio Server'). Can be changed globally with options(svDialogs.rstudio = TRUE|FALSE). TRUE by default.

Value

A character scalar giving either "RStudio" or the result of Sys.info()["sysname"]


svDialogs

SciViews - Standard Dialog Boxes for Windows, MacOS and Linuxes

v1.0.3
GPL-2
Authors
Philippe Grosjean [aut, cre] (<https://orcid.org/0000-0002-2694-9471>), Paul Hibbins [ctb]
Initial release
2021-04-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.