Description Usage Arguments Details Value
With a Javascript source file open in RStudio, this function will insert a JSDoc skeleton for the documentation.
1 2 3 4 5 | insertJSDocSkeleton(args = getArgList(),
tags = getOption("JSDoc.tags"),
addWhitespace = TRUE,
start = attr(args, "start"),
id = attr(args, "id"))
|
args |
The arguments that will need documenting. |
tags |
Extra tags (e.g. |
addWhitespace |
Should leading whitespace be added, to match the line containing the function definition? |
start |
Where is the function definition? |
id |
The id of the source file containing the Javascript. |
If an option named "JSDoc.memberof"
is set using the
options
function, it will be inserted
as the @memberof
tag when the skeleton is created.
If no such option is present when this package is loaded, it
will be initialized to c("@memberof ?", "@returns { ? }")
.
Mainly called for the side effect of inserting the markup comments, but does return the insertion invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.