def update_package(r_library_path=r_library_path):

    # check that we're in a sane installation environment
    validate_environment()

    if r_pkg_version() is None:
        arcpy.AddWarning(
            "Package is not installed. First use the \"Install R bindings\" script.")
    else:
        if compare_release_versions():
            arcpy.AddMessage("New release detected! Installing.")
            install_package(overwrite=True, r_library_path=r_library_path)
        else:
            msg = "The installed ArcGIS R package (version " + \
                  "{}) is the current version on GitHub.".format(r_pkg_version())
            arcpy.AddMessage(msg)

# execute as standalone script, get parameters from sys.argv
Update ArcGIS R bindings on this machine.
dataset/ETHPy150Open R-ArcGIS/r-bridge-install/rtools/update_package.py/update_package