Description Usage Arguments Examples
View source: R/trig_radian_check.R
Check that argument is in radians
1 2 3 | trig_radian_check(ex, radian_val,
fail = "could not find call to a trigonometric function", pass = "",
eps = 0.001)
|
ex |
A |
radian_val |
a number: the desired angle in radians |
fail |
character string message to produce on failure |
pass |
character string message to produce on pass (and switches output action from OK to pass.) |
eps |
precision of comparison |
1 2 3 4 | ex <- for_checkr(quote(15 * sin(3)))
trig_radian_check(ex, 3)
trig_radian_check(ex, 3 * pi / 180)
trig_radian_check(ex, 4*pi/180)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.