

def init_r_directories(name, license_id):
    os.makedirs(os.path.join('R', 'pkg', 'R'))
    os.makedirs(os.path.join('R', 'pkg', 'man'))
    os.makedirs(os.path.join('R', 'pkg', 'data'))
    os.makedirs(os.path.join('R', 'pkg', 'src'))
    replacements = [('$$packageName$$', name.split('/')[1]), ('$$date$$', datetime.datetime.now().strftime('%Y-%m-%d')), get_license_replacement(license_id, just_name=True)]
    create_static_file(os.path.join('R', 'pkg', 'DESCRIPTION'), replacements=replacements)
    create_static_file(os.path.join('R', 'pkg', 'NAMESPACE'))
    create_static_file(os.path.join('R', 'pkg', 'man', 'documentation.Rd'), replacements=replacements)
    create_static_file(os.path.join('R', 'pkg', 'Read-and-delete-me'))

dataset/ETHPy150Open databricks/spark-package-cmd-tool/python/spark_package/spark_package.py init_r_directories/original