batch_publish: batch_publish

View source: R/batch_publish.R

batch_publishR Documentation

batch_publish

Description

Publish one or more lessons that have been staged in the published/ folder of a lesson directory

Usage

batch_publish(
  WD = "?",
  commit_msg = NULL,
  recompile = FALSE,
  try_harder = FALSE,
  lessons_dir = NULL,
  verbosity = 1
)

Arguments

WD

is working directory of the project; easiest way to supply a different lesson is with "?", which will invoke pick_lesson(); default is WD=getwd()

commit_msg

What do you want to say about this update? Default=NULL, i.e. "automated galacticPubs::publish()"

recompile

logical; run compile_lesson()? default=FALSE

try_harder

Do you want the function to retry if it fails? A bit experimental. Gets passed to catch_err(); default=FALSE

lessons_dir

path to the virtualized folder Edu/lessons, where all the lessons are found; default=NULL

verbosity

passed to httr2::req_perform(); default=1

Details

This assumes that you have Google Drive for Desktop set up and have permissions to access the lesson files.


galacticpolymath/GPpub documentation built on April 5, 2025, 6:04 p.m.