from typing import Dict
import re


def get_dependencies_default(r_content, schema_name) -> Dict[str, str]:
    """Return a dictionary (script_name -> table_name) for tables under the given schema_name that are used in r_content.
    By default, the tables used in the R script must be referred to in the <schema>.<table> format.
    E.g. if 'viewflow_raw.users' is mentioned in r_content, then ('viewflow_raw.users' -> 'users') will be added to the dictionary."""
    view_matches = re.finditer(f"[^a-z\d_\.]({schema_name}\.([a-z\d_\.]*))", r_content)
    res = dict()
    for m in view_matches:
        res[m.group(1)] = m.group(2)
    return res