Skip to content

typo in [Re: [R] two questions]

1 message · Martin Maechler

#
Jim> 1. Brian has suggested that I check that the proper version of my
    Jim> required library, rmutil, is loaded by the other libraries. Is
    Jim> there any way of checking library versions when loading them?

    MM> the library can define a variable "rmutilVersion".
    MM> you would do

    MM> library(rmutil)
    MM> if(!exists("rmutilVersion") && rmutilVersion < 2.1)
    MM>     stop("You must use at least version 2.1 of the `rmutil' package")

``of course'', the "&&" above should be "||" !
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._