R implementation of ua-parser