jargs | R Documentation |
Show R function arguments jam-style
jargs(
x,
grepString = NULL,
sortVars = FALSE,
asList = TRUE,
useColor = TRUE,
lightMode = NULL,
Crange = getOption("jam.Crange"),
Lrange = getOption("jam.Lrange"),
adjustRgb = getOption("jam.adjustRgb"),
useCollapseBase = ", ",
verbose = FALSE,
debug = 0,
...
)
x |
|
grepString |
|
sortVars |
|
asList |
|
useColor |
|
lightMode |
|
Crange |
|
Lrange |
|
adjustRgb |
|
useCollapseBase |
|
verbose |
|
debug |
|
This function displays R function arguments, organized with one argument
per line, and colorized using the crayon
package if
installed.
Output is nicely spaced to help visual alignment of argument names and argument values.
Output can be filtered by character
pattern. For example the
function ComplexHeatmap::Heatmap()
is amazing, and offers numerous
arguments. To find arguments relevant to dendrograms, use "dend"
:
jargs(ComplexHeatmap::Heatmap, "dend")
NOTE: This function has edge case issues displaying complex function argument values such as nested lists and custom functions. In that case the argument name is printed as usual, and the argument value is displayed as a partial snippet of the default argument value.
Generic functions very often contain no useful parameters,
making it difficult to discover required
parameters without reading the function documentation from the proper
dispatched function and calling package. In that case,
try using jargs(functionname.default)
for example compare:
jargs(barplot)
to:
jargs(barplot.default)
Other jam practical functions:
breakDensity()
,
checkLightMode()
,
check_pkg_installed()
,
colNum2excelName()
,
color_dither()
,
diff_functions()
,
exp2signed()
,
fileInfo()
,
fixYellow()
,
getAxisLabel()
,
handleArgsText()
,
heads()
,
isFALSEV()
,
isTRUEV()
,
jamba
,
kable_coloring()
,
lldf()
,
log2signed()
,
make_html_styles()
,
make_styles()
,
match_unique()
,
mergeAllXY()
,
middle()
,
minorLogTicks()
,
newestFile()
,
printDebug()
,
renameColumn()
,
rmInfinite()
,
rmNAs()
,
rmNA()
,
rmNULL()
,
sclass()
,
sdim()
,
setPrompt()
args(jargs)
jargs(jargs)
# retrieve parameters involving notes from imageByColors
jargs(imageByColors, "note")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.