unpack_course {swirlify} | R Documentation |
Unpack an .swc
file into a swirl course
Description
Invisibly returns the path to the unpacked course directory.
Usage
unpack_course(file_path = file.choose(),
export_path = dirname(file_path))
Arguments
file_path |
Optional, full path to the |
export_path |
Optional, full path to the directory where the swirl course
should be exported. If not specified, the course will appear in the same
directory as the |
Value
A string, the path to the unpacked course directory, invisibly.
Examples
## Not run:
# Unpack a course and interactively choose a .swc file
unpack_course()
# Unpack a course where the .swc file is explicitly specified
unpack_course(file.path("~", "Desktop", "R_Programming.swc"))
# Unpack a course and specify where the .swc file is located and where the
# course should be exported.
unpack_course(file.path("~", "Desktop", "R_Programming.swc"),
file.path("~", "Developer", "swirl"))
## End(Not run)
[Package swirlify version 0.5.3 Index]