runtime: Runtime checks.

Description Usage Arguments Examples

Description

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 $.

Usage

1
2
3
4
5
6
7
8
9

Arguments

package

Package name; character or symbol.

x

object to set or retrieve the attribute from.

Examples

1
2
3
4
5
## Not run: 
  try_load(dplyr)
  try_load("dplyr")

## End(Not run)

lbartnik/utilities documentation built on May 3, 2019, 11:52 p.m.