# Extract a demo template
# (this uses a bundled template and extracts information
# into a temporary directory -- you'll have it easier
# because you can insert the paths you want directly)
cookiecutter::bake(
system.file('examples/demo.zip', package = 'cookiecutter'),
fs::path_temp('cookiecutter.demo'),
extra_context = list(
flavor = 'chocolate chip',
hot_beverage = 'coffee'
)
)
Run the code above in your browser using DataLab