This function creates an HTML <img> tag that can be used to display an image file stored in a Canvas course. The image will be displayed at 50% width.
Usage
tag_img(
file_id,
width = "100%",
class = "",
course_id = Sys.getenv("CANVAS_COURSE_ID")
)
upload_tag_img(
file_path,
width = "100%",
class = "",
folder_id = NULL,
course_id = Sys.getenv("CANVAS_COURSE_ID"),
url = Sys.getenv("CANVAS_URL"),
token = Sys.getenv("CANVAS_TOKEN")
)