Hi,

What's the best approach to determine if a user uses an R version before 2.15.1
patched?
I know that the sessionInfo() command provides details, but I'm not sure how
the output of sessionInfo() is best used to determine R versions. This seems to
work, but a) there is certainly a better way and b) I'm not sure where the
"patched" will appear in the string. 

if(sessionInfo()$R.version$minor < "15.1") ...

Cheers,

Marius

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to