Don't import R-dependent code until needed so it can work on R-less web server