checkLightMode | R Documentation |
check lightMode for light background color
checkLightMode(lightMode = NULL, ...)
lightMode |
logical or NULL, indicating whether the lightMode parameter has been defined in the function call. |
Check the lightMode status through function parameter, options, or environment variable. If the function defines lightMode, it is used as-is. If lightMode is NULL, then options("jam.lightMode") is used if defined. Otherwise, it tries to detect whether the R session is running inside Rstudio using the environmental variable "RSTUDIO", and if so it assumes lightMode==TRUE.
To set a default lightMode, add options("jam.lightMode"=TRUE) to .Rprofile, or to the relevant R script.
logical or length=1, indicating whether lightMode is defined
Other jam practical functions:
breakDensity()
,
check_pkg_installed()
,
colNum2excelName()
,
color_dither()
,
diff_functions()
,
exp2signed()
,
fileInfo()
,
fixYellow()
,
getAxisLabel()
,
handleArgsText()
,
heads()
,
isFALSEV()
,
isTRUEV()
,
jamba
,
jargs()
,
kable_coloring()
,
lldf()
,
log2signed()
,
make_html_styles()
,
make_styles()
,
match_unique()
,
mergeAllXY()
,
middle()
,
minorLogTicks()
,
newestFile()
,
printDebug()
,
renameColumn()
,
rmInfinite()
,
rmNAs()
,
rmNA()
,
rmNULL()
,
sclass()
,
sdim()
,
setPrompt()
checkLightMode(TRUE);
checkLightMode();
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.