R/leanpub.R
make_screenshots.Rd
This function creates screenshots of course chapters that are stored in a created output directory
make_screenshots(
path = ".",
token,
repo,
output_dir = file.path(path, "resources", "chapt_screen_images"),
base_url = NULL
)
default is to look for OTTR files in current directory based on existence of .github. But if you'd like to run this in a different path, you can point to that file path.
required argument; a Git secret – see https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens for more info
required argument; GitHub repository name, e.g., jhudsl/OTTR_Template
default is "resources/chapt_screen_images"; Output directory where the chapter's screen images should be stored. For OTTR courses, don't change this unless you've changed the downstream functions accordingly.
default is NULL; rendered bookdown URL where screenshots are taken from, if NULL, the function will use the repo_name and and token to find the base_url
the file path for file where chapter urls are saved
if (FALSE) { # \dontrun{
make_screenshots(
token = Sys.getenv("secrets.GH_PAT"),
repo = "jhudsl/OTTR_Template"
)
} # }