export {ottr}R Documentation

Export a submission to a zip file

Description

Export a submission to a zip file for submitting. If indicated, a PDF of the submission is generated and included in the zip file. (PDF generation is only supported for Rmd and ipynb files.)

Usage

export(
  submission_path,
  export_path = NULL,
  display_link = TRUE,
  pdf = FALSE,
  force_save = FALSE,
  debug = FALSE
)

Arguments

submission_path

The path to the submission

export_path

The path at which to write the zip file (optional)

display_link

Whether to display a download link with IRdisplay

pdf

Whether to include a PDF of the submission (only works for Rmd and ipynb files)

force_save

Whether to attempt to force-save the notebook if running on Jupyter

debug

Whether to stop on PDF generation errors

Examples

## Not run: 
export("hw01.ipynb")

# with pdf
export("hw01.ipynb", pdf = TRUE)

## End(Not run)

[Package ottr version 1.5.0 Index]