Generate an HTML link to download a file in a Canvas course This function creates an HTML link that allows users to download a file stored in a Canvas course. The link will point to the download URL for the specified file.
Source:R/utils.R
tag_file.RdGenerate an HTML link to download a file in a Canvas course This function creates an HTML link that allows users to download a file stored in a Canvas course. The link will point to the download URL for the specified file.
Usage
tag_file(file_id, text = "Download")
upload_tag_file(
file_path,
text = "Download",
folder_id = NULL,
course_id = Sys.getenv("CANVAS_COURSE_ID"),
url = Sys.getenv("CANVAS_URL"),
token = Sys.getenv("CANVAS_TOKEN")
)