Rcmdr.Utilities

0th

Percentile

Rcmdr Utility Functions

These functions support writing additions to the Rcmdr package. Additional R code can be placed in files with file type .R in the etc subdirectory of the package. Add menus, submenus, and menu items by editing the file Rcmdr-menus.txt in the same directory.

Keywords
misc
Usage
activeDataSet(dsname)
activeModel(model)
doItAndPrint(command)
justDoIt(command)
is.valid.name(x)
listDataSets(envir = .GlobalEnv, ...)
listGeneralizedLinearModels(envir = .GlobalEnv, ...)
listLinearModels(envir = .GlobalEnv, ...)
logger(command)
Arguments
command
a character string that evaluates to an R command.
dsname
the name of a data frame, as a character string; if not specified, the name of the active data set is returned. If there is no active data set, then an error dialog is generated.
envir
the environment to be searched; should generally be left at the default.
model
the name of a model, as a character string; if not specified, the name of the active model is returned. If there is no active model, then an error dialog is generated.
x
a putative R object name, as a character string.
...
Disregard.
Details

The functions doItAndPrint, justDoIt, and logger control the execution, logging, and printing of commands generated by menus and dialogs. logger(command) adds command to the log window and, with the pseudo-prompt R-cmdr>, to the R session window. justDoIt(command) causes command to be executed. doItAndPrint(command) does both of these operations. The function is.valid.name checks whether a character string specifies a valid name for an R object, returning TRUE or FALSE. The other functions are self-explanatory.

Aliases
  • Rcmdr.Utilities
  • activeDataSet
  • activeModel
  • doItAndPrint
  • is.valid.name
  • justDoIt
  • listDataSets
  • listGeneralizedLinearModels
  • listLinearModels
  • logger
Documentation reproduced from package Rcmdr, version 0.9-4, License: GPL version 2 or newer

Community examples

Looks like there are no examples yet.