Skip to contents

Given a JSON file exported from WISEflow, this function extracts the question text, answer options, scoring info etc and structures the information in one examiner Rmd file per question. An examiner quiz file references the questions is also created, allowing easy verification that the converted Rmd files do work with Canvas. (Or indeed with WISEflow.) Everything is put in a new directory to avoid overwriting existing work.

Usage

wiseflow_json_to_rmd_dir(json_path, new_dir = basename_sans_ext(json_path))

Arguments

json_path

Path to file in WISEflow's JSON format

new_dir

Directory to create with new Rmd files

Value

Path to generated examiner quiz file

Details

The result is a good starting point for remixing and development of the questions, perhaps using version control. You might also want to change image file names to be more descriptive; WISEflow uses hashes.

Currently supported:

  • Multiple choice questions only!

  • WISEflow content banks (content type "item") or Assignment (content type "activity")

  • HTML in question text and answer options.

  • Multi-paragraph answer options (e.g. bokmål and nynorsk separated by a blank line).

  • Images. If originally hosted on WISEflow servers, images will be downloaded locally and linked from there in the generated markdown. Images in inline data URIs will be saved locally and linked from there.