Skip to content
Prev 140161 / 398506 Next

Question about as.numeric with tclvalue

Dear R People:

I have an interactive menu via an Rcmdr extension package which asks
for lower and upper limit to evaluate.

Typically, I use:

assign("a",as.numeric(tclvalue(lowlim)),envir=.GlobalEnv)

and that's fine.

However, if I try to use pi or Inf or -Inf, I get either coerced NAs or NaN.

Does anyone have any suggestions, please?

Thanks,
Erin
PS Happy Easter if you celebrate Easter.