I mean, although you can, I don't see any actual reason to do so. R was built for Economics and Statistics. Using it for applications outside of that would defeat the purpose of R. There's no big libraries or tools for integrating with other systems and is quite slow.