Description Usage Arguments Examples
is_knitr returns TRUE if invoked while knitr is
compiling a document.
try_load attempts to load package package and returns
TRUE if succeeded; FALSE otherwise.
is_rstudio returns TRUE if is called inside RStudio.
set_invisible and is_visible add and read, respectively,
the "visible" attribute to its argument. This can be used to prevent
printing objects returned from the dollar-sign operator $.
1 2 3 4 5 6 7 8 9 | is_knitr()
try_load(package)
is_rstudio()
set_invisible(x)
is_visible(x)
|
package |
Package name; character or symbol. |
x |
object to set or retrieve the attribute from. |
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.