Fixed issue where Ace editor was not working on Windows.
Added make_pathname()
.
Added swirl_courses_dir()
.
Removed lp()
.
Deprecated testit()
. testit()
will be removed in swirlify 0.6.
Added demo_lesson()
which replaces testit()
.
Added google_form_decode()
to help course authors evaluate their students'
progress in a swirl couse.
Added swirlify()
which starts a Shiny app for authoring swirl lessons.
Removed swirlify_help()
.
Changed demo_lesson()
to testit()
, although it will be changed back before
swirlify 0.5. This was done because of compatibility issues with swirl.
Added lp()
for quickly finding the file path to the current lesson.yaml.
test_lesson()
and test_course()
now check for proper lesson formatting.
Added tests for packing and unpacking a lesson.
Added add_license()
for easy course licensing.
Changed count_units()
to count_questions()
.
Changed test_lesson()
to demo_lesson()
.
Removed shiny authoring tool. Development of this tool will continue as a separate project.
Added pack_course()
and unpack_course()
to help with sharing courses in
the .swc
file format.
Changed the API for all of the question writing functions which now start
with the prefix wq_
. This is meant to be used with tab-completion to make
writing lessons easier.
Changed swirl2html()
to lesson_to_html()
.
Changed hlp()
to swirlify_help()
.
swirl2html()
documentation.Deprecate author_lesson()
, which is the old R Markdown approach. We me eventually introduce a more efficient R Markdown style that is neatly integrated with the current YAML approach.
Change new_yaml()
to new_lesson()
with notice to user.
Normalize file paths using normalizePath()
in case user specifies a relative path to a lesson, then changes their working directory.
Allow user to specify path to YAML lesson as an argument to set_lesson()
.
Update hlp()
menu.
Add check to testit()
to make sure that the lesson being tested is listed in the course MANIFEST
, if one exists in the course directory.
Add commented out AUTO_DETECT_NEWVAR <- FALSE
to customTests.R template created by new_yaml()
. Setting this variable equal to FALSE
can prevent double evaluation of printing and plotting commands.
Update hlp()
output to include count_units()
and testit(from, to)
.
swirl2html()
to convert swirl lessons formatted in YAML to R markdown (Rmd) and html files. The output is a stylized webpage that acts as a standalone tutorial based on the original swirl lesson.new_yaml()
. hlp()
gives a list of related functions. We plan to integrate this new approach more closely with existing swirlify functions, but it functions well as is.