def clean_rstudio():
    try:
        remove_os_pkg(['rstudio-server'])
        conn.sudo('rm -f /home/{}/.Rprofile'.format(args.os_user))
        conn.sudo('rm -f /home/{}/.Renviron'.format(args.os_user))
    except Exception as err:
        print('Error:', str(err))
        sys.exit(1)
def clean_rstudio():
    try:
        remove_os_pkg(['rstudio-server'])
        conn.sudo('rm -f /home/{}/.Rprofile'.format(args.os_user))
        conn.sudo('rm -f /home/{}/.Renviron'.format(args.os_user))
    except Exception as err:
        print('Error:', str(err))
        sys.exit(1)