Though Python is usually thought of over R for doing system administration tasks, R is actually quite useful in this…