| amr_course | R Documentation |
Downloads and unpacks a GitHub repository containing course materials, using usethis::use_course(). This is a convenience wrapper intended for use in educational settings, such as workshops or tutorials associated with the AMR package.
amr_course(github_repo, branch = "main", ...)
github_repo |
A character string specifying the GitHub repository with username and repo name, e.g. |
branch |
A character string specifying the branch to download. Defaults to |
... |
Additional arguments passed on to |
This function constructs a ZIP archive URL from the provided github_repo and branch, then delegates to usethis::use_course() to handle the download and extraction.
The function is designed for interactive use in course or workshop settings and is not intended for use in non-interactive or automated pipelines.
Called for its side effect. usethis::use_course() will prompt the user to choose a destination and open the extracted project. Returns invisibly whatever usethis::use_course() returns.
usethis::use_course()
## Not run:
# Let this run by users, e.g., webinar participants
amr_course("https://github.com/my_user_name/our_AMR_course")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.