Skip to contents

Get the warnings of qenv object

Usage

get_warnings(object)

# S4 method for qenv.error
get_warnings(object)

# S4 method for qenv
get_warnings(object)

# S4 method for `NULL`
get_warnings(object)

Arguments

object

(qenv)

Value

character containing warning information or NULL if no warnings

Examples

data_q <- new_qenv()
data_q <- eval_code(new_qenv(), "iris_data <- iris")
warning_qenv <- eval_code(
  data_q,
  bquote(p <- hist(iris_data[, .("Sepal.Length")], ff = ""))
)

cat(get_warnings(warning_qenv))
#> ~~~ Warnings ~~~
#> 
#> > "ff" is not a graphical parameter
#> > "ff" is not a graphical parameter
#> > "ff" is not a graphical parameter
#> > "ff" is not a graphical parameter
#> when running code:
#> p <- hist(iris_data[, "Sepal.Length"], ff = "")
#> 
#> ~~~ Trace ~~~
#> 
#> iris_data <- iris
#> p <- hist(iris_data[, "Sepal.Length"], ff = "")