Learn R Programming

assertive (version 0.3-0)

assert_is_architect: Are you running R?

Description

Checks to see what type of R you are running.

Usage

assert_is_architect()

assert_is_r()

assert_is_r_alpha()

assert_is_r_beta()

assert_is_r_devel()

assert_is_r_patched()

assert_is_r_release_candidate()

assert_is_r_stable()

assert_is_revo_r()

assert_is_rstudio()

assert_is_rstudio_current()

assert_is_rstudio_desktop()

assert_is_rstudio_server()

assert_is_slave_r()

is_architect()

is_r()

is_r_alpha()

is_r_beta()

is_r_devel()

is_r_patched()

is_r_release_candidate()

is_r_stable()

is_revo_r()

is_rstudio()

is_slave_r()

Arguments

Value

  • is_r wraps is.R, providing more information on failure. is_r_stable, is_r_patched and is_r_devel tell you what type of R build you are running. is_architect, is_rstudio and is_revo_r tell you if you are running Architect/StatET, RStudio, or Revolution Analytics' Revolution R build. is_slave_r tells you if you are running a slave instance of R (e.g. when building a package with devtools or using a cluster). The assert_* functions return nothing but throw an error if the corresponding is_* function returns FALSE.

References

http://www.revolutionanalytics.com/revolution-r-open

See Also

is.R, version.

Examples

Run this code
is_r()
is_r_stable()
is_r_patched()
is_r_devel()
is_r_alpha()
is_r_beta()
is_r_release_candidate()
is_architect()
is_revo_r()
is_rstudio()
is_slave_r()
switch(
  version$status,
  Patched                        = assert_is_r_patched(),
  "Under development (unstable)" = assert_is_r_devel(),
  alpha                          = assert_is_r_alpha(),
  beta                           = assert_is_r_beta(),
  RC                             = assert_is_r_release_candidate(),
  assert_is_r_stable()
)
dont_stop(assert_is_r())

Run the code above in your browser using DataLab